I'm working on frontend application, and most part of it should be hidden from unauthorized user. When using default react application (like create-react-app) it bundles everything in one (almost) file and then clients downloads it. So client has content of all the components.
What is the most secure and convenient way to hide data from the client? I want to serve internal content of the application only when user logged in.