If you want to modify the React js Application after installation then just go to myfirstreact
after that go to src folder and just open App.js file and modify that
myfirstreact>src>App.js
Default React Application code will look like
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
}
export default App;
If you just want hello world for React application then just remove tag from render return like
import React, { Component } from 'react';
class App extends Component {
render() {
return (
<div className="App">
<h1>Hello World</h1>
</div>
);
}
}
export default App;
Now your modification in React Apllication will appear after save without having reloading in browser
Now your First Hello world React js application is ready