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

Using React Hooks #4369

Closed
kewp opened this issue Oct 14, 2020 · 2 comments
Closed

Using React Hooks #4369

kewp opened this issue Oct 14, 2020 · 2 comments

Comments

@kewp
Copy link

kewp commented Oct 14, 2020

Environment

  • Package version(s): N/A
  • Browser and OS versions: N/A

Question

Just starting my first big React project and I think this is the best interface library available. My question is if you can use React Hooks with Blueprint, since hooks were introduced in React 16.8? The example code uses classes - is that a limitation?

Thank you.

@adidahiya
Copy link
Contributor

You can freely mix component types in React, using class and function components interchangeably. Some Blueprint components have not been completely updated to support all the new paradigms introduced in React 16.8 (like ref objects in some props, for example #4370), but that will not prevent you from using those components in an application which uses functional React components & hooks.

@kewp
Copy link
Author

kewp commented Oct 14, 2020

That's good to hear. Thank you for your reply

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

No branches or pull requests

2 participants