|
- Introduction | React Async
React Async is a utility belt for declarative promise resolution and data fetching It makes it easy to handle asynchronous UI states, without assumptions about the shape of your data or the type of request React Async consists of a React component and several hooks You can use it with fetch, Axios or other data fetching libraries, even GraphQL
- Async components | React Async - GitHub
The most common use case for React Async is data fetching In single-page applications it's very common to dynamically load some data from a backend React Async makes it incredibly easy to set this up, without having to worry about the details The mental model of React Async is component-first
- Introduction | React Async - GitHub
React Async is a utility belt for declarative promise resolution and data fetching It makes it easy to handle asynchronous UI states, without assumptions about the shape of your data or the type of request React Async consists of a React component and several hooks You can use it with fetch, Axios or other data fetching libraries, even GraphQL
- Interfaces | React Async - GitHub
React Async provides several ways to use it The classic interface is through the <Async> component, which is backwards compatible to React v16 3 More recent React applications will be using hooks, of which two are provided: useAsync and useFetch Functionally, <Async> and useAsync are equivalent
- Interfaces | React Async
React Async provides several ways to use it The classic interface is through the <Async> component, which is backwards compatible to React v16 3 More recent React applications will be using hooks, of which two are provided: useAsync and useFetch Functionally, <Async> and useAsync are equivalent
- Async actions | React Async - GitHub
Async actions Fetching data for display alone isn't sufficient for most applications You'll often also want to submit data back to the server, or handle other types of asynchronous actions
- Installation | React Async - GitHub
This package requires react as a peer dependency Please make sure to install that as well If you want to use the useAsync hook, you'll need react@16 8 0 or later
- Helper components | React Async
React Async provides several helper components that make your JSX more declarative and less cluttered They don't have to be direct children of <Async> and you can use the same component several times
|
|
|