News for hackers. Stuff that matters.
Re:Virtual DOM in Elm by joesb on Tuesday July 22, 2014 @06:51AM (#8068259)
This got me wondering how React handles this requirement. Can you use React if you need to know offsetWidth/Height to do complex layout?
Re:Virtual DOM in Elm by ksherlock on Tuesday July 22, 2014 @10:35AM (#8069172)
Once the component is mounted (there's a componentDidMount callback) you have access to the real DOM node and can access them (or perhaps store them as a property if necessary). The DOM node is also available from event callbacks and such.