I have a component in React which I am importing in index.js, but it is giving this error: Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null
import React, { Component } from 'react';
import './App.css';
const Intro = (props) => {
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload
</p>
}
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<h1 className="App-title">TV Series list</h1>
</header>
<Intro />
</div>
);
}
}
export default App;