Why should I put the logic in the render method?


#1

in React 1, “Put Logic in a render function”, it says we should do just that.

OK, But Why? Encapsulation?


#2

Render is a method that is part of React.js. It renders what is inside it to the page. React.js has many of the functions (such as componentWillMount) that do specific things.
The React.js docs are always a great place to look for more information. https://facebook.github.io/react/docs/hello-world.html


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.