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

React peer dependency #2

Closed
mhisham744 opened this issue Oct 4, 2018 · 1 comment
Closed

React peer dependency #2

mhisham744 opened this issue Oct 4, 2018 · 1 comment

Comments

@mhisham744
Copy link

I would like to use this library in an app which requires react 16.3 or later.

Would it be possible to make react and react-dom as peer dependencies?

Thanks!

@syt123450
Copy link
Owner

Yes, you can use react and react-dom separately in your react app, I write several demo, in the hello world demo links, I use react and react-dom as peer dependencies. In this js file, import react and react-dom separately.

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