Hacker News new | ask | show | jobs
by PascalW 3217 days ago
Yes that works in most cases but I strive not to use preact-compat - like to keep things lightweight.
1 comments

Yep, 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})