import * as React from "react"
import usePromise from "thismodule"
function Root(){
const [{value,loading},loadValue] = usePromise(p)
return <div>
<span>{value}</span>
<span>{loading?"...":""}</span>
<button onClick={loadValue}>load</button>
</div>
}-
Notifications
You must be signed in to change notification settings - Fork 0
buhichan/react-hooks-use-promise
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
just some experimental codes
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published