You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Are inline styles a good fit for a beginner guide? #24
There is a myth that React requires using inline styles, and IMO this guide might confirm this idea for people who aren't experienced with React.
Would it be better to use plain CSS for learning? I understand the advantages of using a single file in examples, but it can hurt perception of React's flexibility.
In addition, inline styles implemented naïvely as objects have performance issues.
Reacted by Ben Chand, Dave Ceddia, beezenees, Anup and jenniferabowd
There is a myth that React requires using inline styles
Even when I started learning react.js, I had the same opinion, but then it will take a while for any person to understand what the whole concept of React.
IMO this guide might confirm this idea for people who aren't experienced with React.
IMO, I don't find any need of inline styling in react.
Would it be better to use plain CSS for learning?
Absolutely. Without any doubt. Since that is the classic way which everyone got used to for a long time. And with this, there is no confusion at all.
Inline styles implemented naïvely as objects have performance issues
How can that affect the performance? Is it the bundle size & loading time?
Activity
reznord commentedon Jun 27, 2017
Even when I started learning react.js, I had the same opinion, but then it will take a while for any person to understand what the whole concept of React.
IMO, I don't find any need of inline styling in react.
Absolutely. Without any doubt. Since that is the classic way which everyone got used to for a long time. And with this, there is no confusion at all.
How can that affect the performance? Is it the bundle size & loading time?