3 ms·
Where I'm at we were putting refs into redux, but since HTML elements are mutable they don't quite belong in redux. So moved them into an API where the refs can
by __s 8y ago
Where I'm at we were putting refs into redux, but since HTML elements are mutable they don't quite belong in redux. So moved them into an API where the refs can be passed down the tree with contexts. Then use those refs for rendering portals. Useful for having content be able to manage a panel elsewhere on screen