3 ms·
Why did you build a canvas manipulation tool using React as the framework? Are you concerned about reconciliation performance?
by SeanAnderson 4y ago
Why did you build a canvas manipulation tool using React as the framework? Are you concerned about reconciliation performance?
- satvikpendem 4y agoI think it's like Figma or more concretely react-three-fiber, which bypasses the React renderer for its own high performance one. React is used simply for the DX and for everything else in the UI I imagine, as I like writing in components rather than imperative DOM updates.
- jakelazaroff 4y agoLooks like that's not correct. If you open your browser console with the React developer tools extension installed, you can see that not only is the canvas built with the DOM, but it's rendered with React, too.
- steveruizok 4y agoThat’s right, it’s React all the way down. It could render using anything, really; the React rendering part is quite loosely coupled from the main “what needs to be rendered” application layer.
- jakelazaroff 4y agoThat's actually super interesting. I would love to read a deeper dive on how you keep it so smooth, if that's something you'd be willing to share.