Q:

setup new react project

npx create-react-app my-app
cd my-app
npm start
-3
npm install -g react-cli react
1
npx create-react-app my-app    // npx on the first line is not a typo 
cd my-app
npm start
7
npx create-react-app project-name
8
npx create-react-app my-app
cd my-app
yarn start
3
create-react-app my-project --use-npm
1
//maske sure node js is installed on Mac
>brew update
>brew install node

>npm install -g create-react-app
>create-react-app ProjectName 
>cd ProjectName
>npm i bootstrap tachyons // for bootstrap and tachyons css libraries
>npm i react-router-dom //installing common hooks in react
>npm i firebase       // install firebase

//for import in your index.js
import 'tachyons';
import 'bootstrap/dist/css/bootstrap.min.css';
import * as firebase from 'firebase'
1

New to Communities?

Join the community