Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are inline styles a good fit for a beginner guide? #24

Open
gaearon opened this issue Jun 26, 2017 · 1 comment
Open

Are inline styles a good fit for a beginner guide? #24

gaearon opened this issue Jun 26, 2017 · 1 comment

Comments

@gaearon
Copy link

gaearon commented Jun 26, 2017

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.

@reznord
Copy link

reznord commented Jun 27, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants