You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 28, 2019. It is now read-only.
When using ReactJS, chances are high you might want to use other third-party libraries that need to be instantiated and/or injected, such as TapEventPlugin, react-bootstrap or Material-UI.
A very ReactJS way to do that for ngReact is to write a (or multiple) higher order components and compose them.
importReactfrom'react';importcomposefrom'recompose/compose';importwithTapEventPluginfrom'…';importwithMaterialUiThemefrom'…';constMyComponent=({ title })=><span>{title}</span>;constenhance=compose(withTapEventPlugin,withMaterialUiTheme({someConfig: true}),);exportdefaultenhance(MyComponent);
It would be super awesome to be able to do the same with reactDirective, e. g.