News for hackers. Stuff that matters.
Re:Show HN: React-hint – 150LoC Tooltip Component for React,... by thomasfl on Sunday August 27, 2017 @03:12PM (#15112190)
Have 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.
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})