liveBook · Manning

React

As explained in Refactoring to Rust

React is an open-source JavaScript library for building user interfaces from reusable components.

React is an open-source JavaScript library for building user interfaces from reusable components. Components separate concerns into isolated packages with related functions or data. section 9.4

A stateful list component

const [entries, setEntries] = useState([{id: "abc", title: "title"}]) const [page, setPage] = useState(0) return <> <ul>{entries?.map((v, i) => <li key={i}><a href={`${v.id}`}>{v.title}</a></li>)}</ul> <button onClick={() => setPage(page => page + 1)}>More</button> </>

How Refactoring to Rust covers it

How deep it goes
Demonstrates project setup, component state, list rendering, effects, and WebAssembly integration without covering deeper React internals.
Examples
Uses a Vite project, a stateful list component, pagination, and asynchronous paper-search results.
What it assumes
Assumes JavaScript and npm familiarity while introducing component structure, React state, and effects through small examples.
What you can do after
Builds a basic React interface with Vite and connects it to an imported WebAssembly library.
How it connects
Connects component-based development, JavaScript, Vite, npm, and WebAssembly.

Also explained in

Compare how 5 books explain React →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Refactoring to Rust. The section links point to the parts of the book it draws on.