#hook #component #helper #seed #clone #input #click

nightly seed_comp_helpers

Component State - a clone of React Hooks use_state

3 releases

0.0.3 Jan 9, 2020
0.0.2 Dec 31, 2019
0.0.1 Nov 27, 2019

#25 in #click

29 downloads per month

MIT/Apache

37KB
827 lines

Some helpers and custom hooks for seed

  • on_click and on_input - shortcus for mouse_ev(Ev::Click, |f| Msg) and input_ev(Ev::Input, |f| Msg)
  • use_fetch and use_fetch_colleciton - custom hooks to manage json requets
  • graphql_list - example of a custom hook using the above to make a graphql query and keep a list up to date
  • form_state - proof of concept form helpers, very incomplete
  • schedule_update - schedule an app update from anywhere
  • init and get_app - access the app from anywhere

Dependencies

~17MB
~338K SLoC