My file structure is:
dist css style.css index.html js bundle.js src css style.css index.html js main.js node_modules webpack.con
Check your console logs if it has below error then add cors to your webpack dev server file
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin react hot reload
Ideally add below entry in you dev server js
headers: { "Access-Control-Allow-Origin": "*" },