Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is React always visible in the source code?

Tags:

reactjs

I'm a newcomer to React, and I was wondering something. If a site has been built using React, will I always be able to see that in the source code from the developer tools? I installed the ReactJS Super-Powered extension for Chrome, but I don't know how reliable it is.

What should I be looking for if I want to spot React in the code?

like image 471
B B Avatar asked Oct 24 '16 23:10

B B


People also ask

Is React source code visible?

Do you know that when you deploy your React application which is created using create-react-app or your own webpack configuration to a live website like Netlify, Vercel, Heroku etc, your entire source code is visible to everyone from the sources tab of the dev tools.

Can clients see React code?

Any code that is running in the browser - is visible to the user if they want to see it. That's the nature of javascript. As such, you shouldn't store any sensitive data in frontend code.

Is React completely open-source?

React is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody on facebook.com.


2 Answers

There is:

  1. React devtools has many features.

  2. Show me the react extension is useful.

  3. And react uses specific keys to keep track of the dom and keep it quick which could possibly be recognized in the dom.

like image 113
Urasquirrel Avatar answered Dec 15 '22 02:12

Urasquirrel


Delete all the .map files /js and /css folder from your generated build.

like image 21
Saurabh Joshi Avatar answered Dec 15 '22 02:12

Saurabh Joshi