'Is there a way to inject PropTypes to React > 16.8? (like React < 15)
I need to give support for [email protected] which is using React 15, and my current project (react 16.8) with Vitejs builder is failing because that library has react as peerDependency, so inside the library code is using the oldest way to call Proptypes, something like
impor React from 'react'
React.Proptypes
but the project I need to update react version to 16.8.0 and now is failing because the new version of react has not React.Proptypes, so my question is:
Can I ignore the Proptypes? or can I inject PropTypes in React to allow to that library use like the oldest way?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
