/ReactJSBasics

This is a comprehensive guide for ReactJS beginners.

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

This repo aims to help newbies in ReactJS

reactjs-banner


Last Commit Repository Size Stars Forks Issues Pull Requests


Run this repo on your local server with docsify

To run this project with docsify, install the docsify cli:

npm i docsify-cli -g

Once the docsify cli is installed, run the following command:

docsify serve docs

Open http://localhost:3000 to view it in the browser.

This project was bootstrapped with Create React App.

npx create-react-app my-app
cd my-app
npm start

It will create a directory called my-app inside the current folder. Inside that directory, it will generate the initial project structure and install the transitive dependencies:

my-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
└── src
    ├── App.css
    ├── App.js
    ├── App.test.js
    ├── index.css
    ├── index.js
    ├── logo.svg
    └── serviceWorker.js

No configuration or complicated folder structures, just the files you need to build your app. Once the installation is done, you can open your project folder:

cd my-app

Inside the newly created project, you can run some built-in commands:

npm start

Runs the app in development mode. Open http://localhost:3000 to view it in the browser.