When I use <React.StrictMode>
in
ReactDOM.render(<React.StrictMode><App /></React.StrictMode>, document.getElementById('root'));
and the App.js is
render() {
console.log('enter render')
return(<React.Fragment>
<h1>HI</h1>
</React.Fragment>
)}}
after run project console show
enter render
2 times
if I delete <React.StrictMode>
then I saw in the consol
enter render
for one time
why did this happen?