Javascript react

From wikinotes
Revision as of 02:04, 11 December 2022 by Will (talk | contribs) (→‎Best Practices)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A user interface framework written in javascript at facebook.
It is used both for websites, and for mobile applications.
It is also referred to as react.js

Most commonly, react is written in jsx or tsx, where it is used like a superset of html.
It encourages typed callbacks over strings/templating.

Documentation

api docs https://reactjs.org/docs/react-api.html
api docs/overview (intro) https://reactjs.org/docs/hello-world.html
api docs/advanced (features) https://reactjs.org/docs/accessibility.html
homepage https://reactjs.org/
codepen (interactive editor) https://codepen.io/pen

Intro/Reference

react projects
react anatomy

Syntax

react components
react lazy components
react events
react hooks

Best Practices

react state management
react testing