<https://github.com/JetBrains/kotlin-wrappers/pull...
# javascript
Copy code
ref = RefCallback<dynamic> {
  doSomethingWithRef(it)
}
t
useRefCallback
better 🙂 Also strict type parameter recommended (automatic in future)
p
Hmm,
useRefCallback
requires
Element
, bu I don't have that. I'm trying to do this: https://github.com/uiwjs/react-codemirror/blob/master/website/App.js#L190 (I already have my
external class CodeMirror
)
t
Also useRefState will be available in next release
Released :)