Step 1: Install NodeJs Repository
curl -fsSL https://rpm.nodesource.com/setup_current.x | bash -
Step 2: Install development tools
To compile and install native addons from npm we must install build tools using below command
dnf install gcc-c++ make -y
Step 3: Installing Node JS
Use below command to install Node JS
dnf install nodejs -y
Now verify NodeJS and NPM is installed using below commands
Step 4: Install React JS package
npm install -g create-react-app
Step 5: Installing and Starting react app
Now switch to project directory
Finally, run react app using below command
Once you execute below command you will see following page on your browser.
Finally everything has been done according to plan. Now you can make changes to app files under “src” directory. Once you made changes, reload your react app and you will see new changes on your browser page.