Author -  Sai gowtham

How to check the React version Quickly

In this tutorial, we are going to learn about multiple ways to check the (current) react version we are using in our project.

Using the React.version property

We can use the React.version property to check the current react version from a component.

Here is an example:

App.js
import React from "react";
import "./styles.css";

export default function App() {
  return (
    <div className="App">
      <h1>Current version is {React.version}</h1>    </div>
  );
}

Using the Terminal

Inside the terminal, we can check the react version by running the npm list react command.

Here is an example:

npm list react

Output:

react@16.13.1

This above command work on both mac and windows based operating systems.

or you can view the react version by opening a package.json file in your project.

package.json
{
  "name": "react",
  "version": "1.0.0",
  "description": "React example starter project",
  "keywords": [
    "react",
    "starter"
  ],
  "main": "src/index.js",
  "dependencies": {
    "react": "16.13.1",    "react-dom": "16.13.1",

Css Tutorials & Demos

How rotate an image continuously in CSS

In this demo, we are going to learn about how to rotate an image continuously using the css animations.

How to create a Instagram login Page

In this demo, i will show you how to create a instagram login page using html and css.

How to create a pulse animation in CSS

In this demo, i will show you how to create a pulse animation using css.

Creating a snowfall animation using css and JavaScript

In this demo, i will show you how to create a snow fall animation using css and JavaScript.

Top Udemy Courses

JavaScript - The Complete Guide 2023 (Beginner + Advanced)
JavaScript - The Complete Guide 2023 (Beginner + Advanced)
116,648 students enrolled
52 hours of video content
$14.99 FROM UDEMY
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
631,582 students enrolled
49 hours of video content
$24.99 FROM UDEMY
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
203,937 students enrolled
31.5 hours of video content
$14.99 FROM UDEMY