Closed pjebs closed 6 years ago
@pjebs my apologies, I'm hopelessly behind on issues generally.
Are you, by any chance, at GopherCon? If so, blitzing through a number of these things in person might be the way forward.
Not at gophercon
In which case I'll try to come round to your issues as soon as I can. Thanks for raising them in the first place and for your patience in the meantime.
Would you be able to put an example on how to use Ref
when you have time. That would be greatly appreciated. I don't know how to deal with Ref
being an interface.
Is https://github.com/myitcv/x/blob/master/react/examples/markdowneditor/markdown_editor.go what you are after?
Yes. Thank you.
I'm trying to use an external library.
How do I get an object by its
Ref
inComponentDidMount()
How do I set a component's ref? It's not safe to use id:
var el = document.GetElementByID("items")
Ref: https://www.javascriptstuff.com/use-refs-not-ids/ https://reactjs.org/docs/refs-and-the-dom.html