DEV Community

Discussion on: How to Hide your React Source Code from Chrome Dev Tools when Deployed to Production

Collapse
 
thebouv profile image
Anthony Bouvier

Just understand this doesn’t make your source code totally unreadable. All your algorithms, any endpoint urls, bare strings, really everything is still viewable. It’s client side code. Don’t hide anything there you don’t want figured out. This merely obfuscates it. But all the source is there for the taking if it is client side.

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan

That's true but it surely adds some levels of difficulty in understanding the code rather than the clearly visible source code.

Collapse
 
thebouv profile image
Anthony Bouvier

Totally. Just don’t want to misdirect newbies who might think following this will protect their source code entirely.

I’ve taught many boot camps now and the material never covers client-server relationships or even “how” the internet works. So just want to make sure new people understand client side code vs server side. That’s all! :)