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

Every component is a class #23

Open
oliverjam opened this issue Sep 28, 2018 · 0 comments
Open

Every component is a class #23

oliverjam opened this issue Sep 28, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@oliverjam
Copy link

Generally if you don't need access to state or the lifecycle methods you should use a functional component const Component = props => <div>... rather than a class. The React team have promised that stateless functional components will get some performance optimisations in the near future so good to be ready for that. Less code too :)

@Brymon Brymon added the enhancement New feature or request label Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants