
Can you set a react project without create-react-app (CRA)? Oh yes, you can! Actually, it's not even that complicated, in this guide, we will creat...
For further actions, you may consider blocking this person and/or reporting abuse
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for the clear instructions!
Wow!! great work bro
Slight change required on my end - in webpack.config.js
entry: './index.js'
Actually your version is more correct as we have to specify the path tou our entry file which should be
./index.js
. Thanks for mentioning @stuartambientThank you for the wonderful and in-depth explanation.
I apologize for posting this comment a bit late. However, I would like to mention an issue I encountered. I believe that before starting the server, it is necessary to perform the build process, correct? I faced an issue stating 'module not found' initially. However, once I performed the build and then started the server, everything worked fine. Please confirm if I interpreted it correctly.
Hi @nithincp when starting the server by running
npm run start
ornpm start
for short it is not necessary to build first. Thenpm run build
command just creates an optimized version of your React code and bundles all your React files (code) into one JavaScript file that is sent to yourindex.html
file, This should have no effect on your development environment.I don't think it worked because you ran the build command because it should work even without it
Thank God I found this, I got tired of the boilerplate code when using CRA. Does it also work for typescript?
It would work with a bit more customization to support typeScript. If you want a simpler approach with less boilerplate I would recommend Vite vite.dev/guide/
Beautifully written, and completely approachable for someone new to frontend dev. Great job!
Best documentation
Wonderful article. Kudos to the Great work