My react application is giving no output, there are no errors. First it worked fine, now the same thing is not working.
I've tried React.render and ReactDOM.render I've tried with and without render()
App.js
import ReactDOM from 'react-dom';
import './index.css';
function Greeting()
{
return
(
<h1>helllo</h1>
);
}
ReactDOM.render
(
<Greeting/>,document.getElementById('root')
);
--------------------------**Index.css**----------------------------------
```body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}