# React

**Answer:** Library notes on the React UI library: props, state, effects, and the other core patterns already covered in the catalog.

This hub is for React the UI library, not for the ReAct prompting paper (Reasoning and Acting). The paper lives with the other reference notes and is not listed here.

Notes in this group were written from react.dev (CC BY 4.0). A Phase C table already maps several state patterns, and react-props also has a code illustration and a schema in /library/artifacts/.

## Project notes

- [React components: reusable UI functions](https://iinventedlight.com/library/notes/react-components-basics/) (`react-components-basics`) — Components are reusable UI elements.
- [Conditional rendering in React](https://iinventedlight.com/library/notes/react-conditional-rendering/) (`react-conditional-rendering`) — Components often render different UI by condition.
- [Passing data deeply with context in React](https://iinventedlight.com/library/notes/react-context/) (`react-context`) — Context reaches any depth without props.
- [Custom Hooks reuse stateful logic](https://iinventedlight.com/library/notes/react-custom-hooks/) (`react-custom-hooks`) — Built-in Hooks include useState and useEffect.
- [React Effects and useEffect](https://iinventedlight.com/library/notes/react-effects/) (`react-effects`) — Effects run code after rendering to synchronize with outside systems.
- [Sharing state by lifting it to a common parent](https://iinventedlight.com/library/notes/react-lifting-state/) (`react-lifting-state`) — Some UIs need two components to change together.
- [Passing props between React components](https://iinventedlight.com/library/notes/react-props/) (`react-props`) — Components communicate through props.
- [Keeping React components pure](https://iinventedlight.com/library/notes/react-pure-components/) (`react-pure-components`) — Pure functions only calculate.
- [React refs and useRef](https://iinventedlight.com/library/notes/react-refs/) (`react-refs`) — A ref remembers information without triggering renders.
- [Rendering lists and keys in React](https://iinventedlight.com/library/notes/react-rendering-lists/) (`react-rendering-lists`) — A well-chosen key helps React.
- [React state and useState](https://iinventedlight.com/library/notes/react-state/) (`react-state`) — Component-specific memory in React is called state.
- [Managing complex state with useReducer](https://iinventedlight.com/library/notes/react-usereducer/) (`react-usereducer`) — useReducer adds a reducer to a component.
- [When you might not need an Effect](https://iinventedlight.com/library/notes/react-when-not-to-use-effect/) (`react-when-not-to-use-effect`) — Effects are an escape hatch.
- [JSX in TypeScript](https://iinventedlight.com/library/notes/typescript-jsx/) (`typescript-jsx`) — Name your files with a .tsx extension.
## Main claims on these notes

- [react-components-basics](https://iinventedlight.com/library/notes/react-components-basics/): Components are reusable UI elements.
- [react-conditional-rendering](https://iinventedlight.com/library/notes/react-conditional-rendering/): Components often render different UI by condition.
- [react-context](https://iinventedlight.com/library/notes/react-context/): Context reaches any depth without props.
- [react-custom-hooks](https://iinventedlight.com/library/notes/react-custom-hooks/): Built-in Hooks include useState and useEffect.
- [react-effects](https://iinventedlight.com/library/notes/react-effects/): Effects run code after rendering to synchronize with outside systems.
- [react-lifting-state](https://iinventedlight.com/library/notes/react-lifting-state/): Some UIs need two components to change together.
- [react-props](https://iinventedlight.com/library/notes/react-props/): Components communicate through props.
- [react-pure-components](https://iinventedlight.com/library/notes/react-pure-components/): Pure functions only calculate.
## Atlas topics grouped here

- branching in jsx
- events as props
- jsx modes
- react context
- react custom hooks
- react effects
- react lifting state
- react props
- react pure components
- react refs
- react rendering lists
- react state
- react usereducer
- typescript jsx
- when props get awkward

## Related hubs

- [Agent memory](/library/topics/agent-memory/)
- [Context compaction](/library/topics/compaction/)
## What links here

No other notes link to the notes on this hub yet.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
