I'm trying to learn react and having problem with a small area. So this is my App.js :
import React from 'react';
import logo from './logo.svg';
import './App.css';
class App extends React.Component{
render(){
return <h1>Heyy</h1>;
}
render(){
return <h1>Helo</h1>
}
}
export default App;
It only renders the Helo. If i have multiple components lets say NavBar and ImageComp, how would i render it on single page with before passing it to ReactDOM.render?
From what i understand, every components goes into App before going into index.js but then how would i include multiple components in App?