Renaming index.js to index.jsx in react app
It's a bug with create-react-app dev server: it can't handle renaming of index.js to index.jsx and vice versa. Just restart your dev server
You need to restart the app after renaming. I fail to find a reason for this but the solution works.
- Stop your app by pressing
Ctrl + C
. - Then restart the app with
npm start
.