Closed
Description
I added component ResultsLoader to my app.
const InitialLoaderComponent = () => {
return <div>Loading...</div>
}
<ResultsLoader renderElement={InitialLoaderComponent}/>
The document is very confused, to be honest. It is written that the ResultsLoader component only has one prop, which is renderElement to override the default rendered component. However, my code did not work. It kept saying that:
Uncaught Error: ResultsLoader(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
Even if I removed prop renderElement and just use <ResultsLoader />
, it still showed the same error
Metadata
Metadata
Assignees
Labels
No labels