Jul 2, 2019 in React JS
Q:

What is render() in React?

1 Answer

0 votes
Jul 2, 2019

Each React component must have a render() mandatorily. It returns a single React element which is the representation of the native DOM component. If more than one HTML element needs to be rendered, then they must be grouped together inside one enclosing tag such as <form><group><div>etc.

Related questions

0 votes
Jul 2, 2019 in React JS
0 votes
Jul 2, 2019 in React JS
...