5 ms·
Nice to see compatibility with Preact and Inferno too. I use Preact a lot and only downside I experience really is lack of library support.
by PascalW 9y ago
Nice to see compatibility with Preact and Inferno too. I use Preact a lot and only downside I experience really is lack of library support.
- thomasfl 9y agoHave you tried making an alias for react with the library preact-compat in webpack config? It should make a lot of react libraries work seamlessly with preact too.
- PascalW 9y agoYes that works in most cases but I strive not to use preact-compat - like to keep things lightweight.
- slmgc 9y agoYep, it works just fine without Preact's compatibility layer: import {h, Component} from 'preact' import {ReactHintFactory} from 'react-hint' import 'react-hint/css/index.css' const ReactHint = ReactHintFactory({createElement: h, Component})