#hook #component #helper #seed #clone #input #json

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

#958 in HTTP server

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

~19MB
~346K SLoC