InterviewSolution
Saved Bookmarks
| 1. |
What is the purpose of render() in React? |
|
Answer» It is compulsory for each React component to have a render(). If more than one element needs to be RENDERED, they must be grouped INSIDE one tag such as <form>, <group>,<div>. This function goes back to the SINGLE react element which is the presentation of native DOM Component. This function must RETURN the same result every time it is invoked. |
|