React

React

Language
JavaScript
Category
2
Version
18.2.0
Authors
Meta, Jordan Walke
Description
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
Install Instructions
  • In order to use React, you'll need to create a React App. Follow these instructions to create one.
  • Open a Terminal or Command Prompt window
  • Create a new project folder and enter the new directory
  • Run:
npx create-react-app my-app
Usage
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" />
Links