So I'm trying to learn ReactJs
( I have an AngularJs Background) and Im having trouble following a tutorial.
To create the project we run this command:
npx create-react-app app-name
Then after that in the tutorial the App.js
is class. But when I run that command mine is a function.
Tutorial App.js
class App extends Component {
render() {
return (
<div className="App">
<h1>Hello, world!</h1>
</div>
);
}
}
My App.js
function App() {
return (
<div className="App">
</div>
);
}
I'm so confused in this part.