Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null [closed]

I had same problem in the render() method.
The problem comes when you return from render() as :

render() {
    return 
    (
        <div>Here comes JSX !</div>
    );
}

i.e. if you start the parenthesis in a new line

Try using:

render() {
    return (
        <div>Here comes JSX !</div>
    );
}

This will solve the error

Leave a Comment