News for hackers. Stuff that matters.
Re:Show HN: React-hint – 150LoC Tooltip Component for React,... by PascalW on Sunday August 27, 2017 @03:57PM (#15112382)
Yes that works in most cases but I strive not to use preact-compat - like to keep things lightweight.
Re:Show HN: React-hint – 150LoC Tooltip Component for React,... by slmgc on Sunday August 27, 2017 @04:39PM (#15112599)
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})