Loading tutorials
useState, useContext, JavaScript promises, and the basic purpose of Suspense. This chapter uses React 19 syntax.1 min readuseContext, and the basic purpose of Suspense. React’s use API has different calling rules from ordinary Hooks such as useState and useContext.1 min readuseContext, and the basic role of Suspense. React’s use API reads a promise during rendering. A pending promise pauses that part of the tree. A rejected promise throws its error.1 min read