react-datalayer
- simple declerative api
- no more propagate props just for dataLayer's purpose
- separate view layer from analytics layer
- easy to implement
before:
; const ListItem = <a href= href onClick= dataLayer > name </a> const List = elements; ;
after:
; ; const ListItem = <a href= href onClick= onClick > name </a> const List = elements ; userId: 2 List;
Check out more examples and get stuck right in with the online editor.
Resources
Todos
- useAnalytics, useTracking
- ts interfaces
- storybook online
- custom dispatch definintion
- tests
- eslint