The Render is one of the important life-cycle methods in the React component life cycle. The render is a mandatory method in a Component.
The render() method should be pure, i.e it should not modify the state (should not call setState()), it should return the same result each time it is invoked. The render method should not modify the state because, changing state will again trigger render(), this will continue as a cycle and cause an indefinite loop causing the application/browser to crashes.
Below is a basic render method of a React component.
The render() method should be pure, i.e it should not modify the state (should not call setState()), it should return the same result each time it is invoked. The render method should not modify the state because, changing state will again trigger render(), this will continue as a cycle and cause an indefinite loop causing the application/browser to crashes.
Below is a basic render method of a React component.

