bytefish

Create React App

$ create-react-app YOUR_APP_NAME

Create React App is a CLI for creating React projects.

JSX

const element = <h1>Hello, world!</h1>;

We can write HTML in JavaScript by JSX.

Embedding Expressions in JSX

const name = 'Josh Perez';const element = <h1>Hello, {name}</h1>;

Just use {} to wrap JavaScript expressions.

Create a Component

It is a simple, stateless, functional…

--

--

bytefish

bytefish

Explain complex concepts with simple English and visual diagrams.