Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

React 17 compatibility, PropTypes #4

Open
khaled98 opened this issue May 12, 2022 · 0 comments
Open

React 17 compatibility, PropTypes #4

khaled98 opened this issue May 12, 2022 · 0 comments

Comments

@khaled98
Copy link

There is an issue when working with react v17, the imported "PropTypes" is undefined.

Solution is to change the import to this:

import PropTypes from 'prop-types';
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant