Skip to content

Sinarab/react-baby-steps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React - baby steps

Setup

# Install dependencies (only the first time)
npm install

# Run the local server at localhost:8080
npm run dev

# Build for production in the dist/ directory
npm run build

How it begins - React + Vite

npm create vite@latest

How it begins - manually

Create with:

npm init -y

Add react

npm install react@18 react-dom@18.2 react-scripts@5.0

Add inital scripts:

"dev": "react-scripts start",
"build": "react-scripts build",

Create a public folder Create a basic index.html file Add a div tag to be targeted by react

<div id="root"></div>

Create a src folder Create a basic index.js file Render root with react-dom.

About

A study about react, starting from the basics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published