I'm using InfernoJS as an alternative for React. Is it possible to use styled-components in Inferno without inferno-compat?
Asked
Active
Viewed 505 times
1 Answers
2
Inferno has a React-like API but doesn't try to be 100% compatible. (contrary to Preact, which works with styled-components
out of the box)
Since styled-components
returns React components and not Inferno components you have to use inferno-compat
.

mxstbr
- 11,087
- 4
- 39
- 37
-
Thank you Max! Unfortunately, we do not use `inferno-compat` Any suggestions about other CSS-in-JS libraries which would work with Inferno ? – Aleem S Oct 06 '17 at 05:05