React.js inline style best practices
@lebyy▲ 0 net votes
Problem: I'm aware that you can specify styles within React classes, like this: const MyDiv = React.createClass({ render: function() { const style = { color: 'white', fontSize: 200 }; return <div s Should I be aiming to do all styling this way, and have no styles at… Fix (from the top answer): There aren't a lot of "Best Practices" yet. Those of us that are using inline-styles, for React components, are still very much experimenting. There are a number of approaches that vary wildly: React inline-style lib comparison chart All or nothing? What we refer to as "style" actually includes quite a few concepts:…