Andrei Duca
Aug 31, 2018 · 1 min read

I’m not sure I understand your request…

HTML will always be available to users via browser inspect tools, so even if you use SSR to render your React app on the server (or any other server-side technology really), you will always send HTML to the client’s browser.

If you don’t want to send the javascript file that runs your app, then you can use SSR (or again, any other server-side technology), but remove the script tag that inclused your app from the final HTML, before sending it to the client. In any case, this way you end up with a static page. In which case you wouldn’t need to use React to start with…

If what you’re trying to do is “hide” the original source code from the user, the one you use for development, then that is already happening when building your app for production. It’s not actually hiding, but more obfuscating, minifying and bundling the original code.

So if this doesn’t answer your question, I’m not sure what exactly you’re trying to achieve. Please be more specific.

    Andrei Duca

    Written by

    Frontend Engineer | creator of Snipit.io