React Render Function and Loop