close

How can one tell the version of React running at runtime in the browser?

Hello Guys, How are you all? Hope You all Are Fine. Today we are going to learn How can one tell the version of React running at runtime in the browser? in javascript. So Here I am Explain to you all the possible methods here.

Without wasting your time, Let’s start This Article.

How can one tell the version of React running at runtime in the browser ?

  1. How can one tell the version of React running at runtime in the browser ?

    can one tell the version of React running at runtime in the browser Open Chrome Dev Tools or equivalent and run require('React').version in the console.
    That works on websites like Facebook as well to find out what version they are using.

  2. How can one tell the version of React running at runtime in the browser ?

    can one tell the version of React running at runtime in the browser Open Chrome Dev Tools or equivalent and run require('React').version in the console.
    That works on websites like Facebook as well to find out what version they are using.

Method 1

From the command line:

npm view react version
npm view react-native version

Method 2

Open Chrome Dev Tools or equivalent and run require('React').version in the console.

That works on websites like Facebook as well to find out what version they are using.

Summery

It’s all About this article. Hope all method helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which method worked for you? Thank You.

Leave a Comment