I managed to use react-typeahead with styled-components by styled(Typeahead), but I don't know whether i can use styled-components with customClasses(input and results). Currently, I'm using CSS Modules(with classnames package) and I want to change to styled-components.
I'm thinking about using it with injectGlobal. Is this only way to achieve my goal?
I managed to use react-typeahead with styled-components by
styled(Typeahead)
, but I don't know whether i can use styled-components with customClasses(input and results). Currently, I'm using CSS Modules(with classnames package) and I want to change to styled-components.I'm thinking about using it with
injectGlobal
. Is this only way to achieve my goal?