Skip to content

Basic environment setup for kickstarting your React App.

Notifications You must be signed in to change notification settings

sudowebdev/react-default-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React environment setup

How to use this repo to initialise your React App?

Run the following command in the terminal:

git clone https://github.com/sudowebdev/react-default-files.git

After cloning it in your local directory, run:

npm install

The environment is all set-up. You can now start your React Project by writing code in src/app.jsx file.
Now run the following command to see your default react app on localhost:8080

npm run dev

Some basic information about the default project structure:

  1. All the React code goes inside the src directory as this is mentioned as the APP_DIR in webpack.config.js.
  2. The main React code will go inside src/app.jsx as this is mentioned as the entry file for webpack.
  3. The output gets served from static directory as this is mentioned as the BUILD_DIR in webpack.config.js.
  4. Run npm run dev to run the script that is mentioned inside the scripts field in package.json.
If you want to dive a little more deep into the React environment setup then click here

About

Basic environment setup for kickstarting your React App.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published