Answers for "react doc"

30

install react js

npx create-react-app <appname>  //  eg:  npx create-react-app blog
cd <appname>  // cd blog
npm start  //runs on localhost:3000
Posted by: Guest on October-28-2020
2

reactjs install

npm install -g create-react-app -> install create react app tools
create-react-app app01 -> create your first projects app001
Posted by: Guest on October-30-2020
6

react.js

class ShoppingList extends React.Component {
  render() {
    return (
      <div className="shopping-list">
        <h1>Shopping List for {this.props.name}</h1>
        <ul>
          <li>Instagram</li>
          <li>WhatsApp</li>
          <li>Oculus</li>
        </ul>
      </div>
    );
  }
}

// Example usage: <ShoppingList name="Mark" />
Posted by: Guest on April-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language