adspace


What is the purpose of render() function in reactjs?

Answer Posted / Bobindra

The render() function in ReactJS returns a description of what should appear on the screen. It takes the component's state and props as input, performs calculations if necessary, and returns a React element (a plain JavaScript object) that represents the desired UI.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you create higher order components (hocs) in react.js?

448


How to use events in reactjs? Give an example of using events?

565