「RFC: First class support for promises and async/await by acdlite · Pull Request #229 · reactjs/rfcs · GitHub」
Adds first class support for reading the result of a JavaScript Promise using Suspense: Introduces support for async/await in Server Components. Write Server Components using standard JavaScript await syntax by defining your component as an async function. Introduces the use Hook. Like await, use unwraps the value of a promise, but it can be used inside normal components and Hooks, including on the client. This enables React developers to access arbitrary asynchronous data sources with Suspense via a stable API. View the rendered text
コンテンツ文字数:0 文字
見出し数(H2/H3タグ):0 個
閲覧数:81 件
2022-10-16 14:02:44