3 ms·
Stop Styling React Components with JavaScript
- sehr 11y agoStyling in js != styling inline
- robgibbons 11y agoThe author didn't even mention speed. Dynamically injected styles will always be slower than static stylesheets. Unless you have a very compelling edge case, use JavaScript for what it was intended: functionality.