Using React to create webpages

First react webpage

Styling using css

React is 10 times better with JSX


1991199119921992199319931994199419951995199619961997199719981998199919993040455049607091100806040200
Download SVG
Download PNG
Download CSV
series-1
series-2
series-3
series-4
series-5
25.6%32.0%23.8%9.9%8.7%

  1. index.html
  2. App.js
  3. index.js
  • Components
  • Functions/ Hooks
  • Context

Here:


Counter Using Class

1
10
100

Counter Using Hooks/ Function

5
0
200

Declarative

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.

Declarative views make your code more predictable and easier to debug.

Component-Based

Build encapsulated components that manage their own state, then compose them to make complex UIs.

Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.

Learn Once, Write Anywhere

We don’t make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.

React can also render on the server using Node and power mobile apps using React Native.