Using styled-components with Inferno JS

525 Views Asked by At

I'm using InfernoJS as an alternative for React. Is it possible to use styled-components in Inferno without inferno-compat?

1

There are 1 best solutions below

1
On BEST ANSWER

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.