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> </>




