revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

add usage example for hooks #991

Closed chinwobble closed 4 years ago

chinwobble commented 4 years ago

The type signatures for the hooks are quite hard to read.

Especially since most parts of it are abstracted away by the brisk-reconciler. This change makes it easier to discover how to use the common hooks.

image

bryphe commented 4 years ago

Thanks @chinwobble for the PR, and thanks @Et7f3 for reviewing! 👍