3 ms·
Problem with everything in HTML was that you couldn't split HTML into small meaningful composable parts. JS is actual programming language an you can split out
by scotty79 10y ago
Problem with everything in HTML was that you couldn't split HTML into small meaningful composable parts.
JS is actual programming language an you can split out styles to separate style library without using .css files.
You could also split out render function (that uses JSX) or its parts to separate file. But you'd rather keep it close to logic that interacts with it and keep the whole component, logic plus presentation small enough to understand with a glance.