Skip to content

Commit 69b99d2

Browse files
shooniaslmgc
authored andcommitted
Update documentation
Add createRef for preact example
1 parent 1b3a05c commit 69b99d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import ReactHintFactory from 'react-hint'
2424
const ReactHint = ReactHintFactory(React)
2525

2626
// Preact
27-
import {h, Component} from 'preact'
27+
import {h, Component, createRef} from 'preact'
2828
import ReactHintFactory from 'react-hint'
29-
const ReactHint = ReactHintFactory({createElement: h, Component})
29+
const ReactHint = ReactHintFactory({createElement: h, Component, createRef})
3030

3131
// Inferno
3232
import Inferno from 'inferno-compat'

0 commit comments

Comments
 (0)