0 votes
in React JS by (1.4k points)

What is render() in React?

1 Answer

0 votes
by (1.4k points)

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.