Coder Social home page Coder Social logo

intro-to-react's Introduction

Intro to React

Setup for Demo

Either install nvm or node >= 10.

Install Nvm

MacOS/Linux

To install or update nvm, run the install script for nvm located here or using the following commands.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

If you have troubleshooting issues, check out the github repo for nvm.

Windows

To install nvm on Windows, download the installer here.

If you have issues or need more info, check out the github repo for nvm-windows.

Install node

We can to install the latest version of node and make sure we use it.

nvm install 14
nvm use 14
node --version

React Demo

This repo contains starter code (with some CSS formatting and the file structure) and the finished code from the demo. Take a peek or try running it locally by running a few commands below.

git clone https://github.com/kristenkoyanagi/intro-to-react
cd intro-to-react
cd my-starter-app
npm install
npm start

If you want to build an app from scratch

Run the create-react-app

Run either block of commands below.

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

npm and yarn are separate node package managers that helps you install dependencies, test, run, and build your app. You can use either one as long as you stick with one.

Check your starter app

If you open http://localhost:3000, you should see the starter app running from the create-react-app command.

Free React Resources

Check some of these out if you want to learn more about React:

intro-to-react's People

Contributors

kristenkoyanagi avatar

Stargazers

 avatar

Watchers

 avatar Beverly Zou avatar

Forkers

mcelmo arelthia

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.