Looking through the slides referenced, this only seems possible/reasonable due to the styles being applied using React's DOM manipulation engine.
Perhaps that's assumable, but recommending this path seems pretty dangerous without significant caveats on its DOM-diffing requirement. Otherwise, just the raw amount of DOM injection is a severe performance risk.
I have been using inline styles in React with great results too. I am glad to see more and more adoption. It leads to better portability and greater flexibility.
5 comments
[ 3.3 ms ] story [ 24.9 ms ] threadThis is afaik the first public library following that path.
Perhaps that's assumable, but recommending this path seems pretty dangerous without significant caveats on its DOM-diffing requirement. Otherwise, just the raw amount of DOM injection is a severe performance risk.