useState and useEffect React Hooks

Saturday, 9/24/22 (Edited)
723 words
4 minutes

components/DisplayUsername.tsx

JavaScript [JS] is a computer programming language

React is a JS library, mainly for describing components for user interactions [UI]

UI = User Interface: the buttons, displays, and "clicky" things on a website

(React is often paired with Next, a JS framework which prepares the website on a faster computer before it's sent to the user's computer or mobile device)

A framework is a library of computer code which provides a general pathway to do things, called a template, which allows the programmer to focus on specifics for their website

A hook is a small way to introduce capabilities without changing the overall component


React components

React components begin as functional stateless components.

functional means you provide some inputs, the computer processes them, and produces some outputs.

stateless means that the the function provides the same response for the same inputs, no matter what state of the world you are in. If you are in New York or Texas,...

Title:useState and useEffect React Hooks

Author:artlu99

URL: https://artlu.xyz/posts/react-hooks-eli5

Last modified:


This work is licensed under CC BY-NC-SA 4.0 .