Mathis c33fe73f6c
Introducing functional components (#1032)
* fixed missing feature flag for yew dependency

* added functional components + hooks + tests

* added wasm pack to travis yaml

* fixed warnings

* ran rustfmt on files

* fix nit

* fix nit

* fix nit use_reducer_with_init

* fixed nit Rc can be Box

* fixed nit: unnecessary boxing

* UseRefState now tuple struct

* fixed unecessary option for phantomdata

* userefstate is now a type alias for Rc<RefCell<T>>;

* integrated suggested change to hook state storing and extracting

* functional-yew -> functional

* tests now work with stdweb *and* web_sys 😊

* correctly implemented use_effect

* hook test now running as stdweb. also removed redundant deps

* removed next tick, message is now an FnOnce -> bool, renamed render_call

* tests now run on web_sys only, making functional yew backend agnostic

* removed use_effect hook for seperate PR

* chore

* we didn't need that Rc anymore

* chore; comment cleanup

Co-authored-by: Mathis <mk@thepeaklab.com>
2020-03-16 23:11:51 +08:00
..
2018-12-14 23:00:50 +05:30