Hi CapsCode, great article by the way.
Please I want to ask if there are any consequences for not hiding React code from browser and the major reason behind hiding it.
Thanks
Thanks, I use it for script build simple in react project. It worked https://monday-crm-clone.herokuapp.com/
"build": "GENERATE_SOURCEMAP=false react-scripts build"
That's an interesting way of hiding your code. As I understand it, source maps are supposed to be used for aiding debugging during development anyways.
Another way may be to use a JavaScript obfuscator. So not even you can read your own code π (check obfuscator.io)
HelloWorld
js
Thanks, How to hide sourcemap in nextjs project? it maybe another article