slmgc/react-hint

Changelog

hudochenkov opened this issue · 7 comments

Thank you for your library!

What are breaking (and non-breaking) changes in v2? I can't find changelog anywhere. Would you mind add it, please?

slmgc commented

@hudochenkov hey :)
There were some breaking API changes and I agree, I need to add a changelog. I will try to do this within the next few days.

As for now, you can probably use the link to the latest v1 "How to use" section as it lists all the parameters and shows some usage examples. Hope it helps!

I can't get React Hint to work with Infero :/ Keep getting a "Super must not be null" error in the console.

slmgc commented

@nfrush in order to use react-hint with Inferno, you need to install inferno-compat as it should have a compatible API, similar to React, as react-hint expects to see createElement & Component, when you initialize a new instance, e.g. ReactHintFactory({createElement, Component}):

import Inferno from 'inferno-compat'
import {ReactHintFactory} from 'react-hint'
import 'react-hint/css/index.css'
const ReactHint = ReactHintFactory(Inferno)

...

<div>
    <ReactHint events />
    <p data-rh="tooltip">Works with Inferno!</p>
</div>

Thank you very much!

slmgc commented

I am working on the next API, it's halfway there, but I would like to get as much feedback as possible about all the inconveniences with the current API and have a proper discussion around the new API. If you could join the discussion it would be awesome: #46

I wish I could help. I'm not working on a project which uses your library for a long time now.