Closed gabrielrtakeda closed 7 years ago
What version of react-fontawesome
are you using?
If you are not on v1.6.0
or above, please upgrade as that issue should have been fixed already.
Hi, @danawoodman I am using the v1.5.0, thanks for the quick reply and, sorry for the inconvenience.
No worries, glad you sorted it out!
Description
When running my personal project, this warning is dispatching:
I am googled a bit and I found the React v15.5.0 blog post.
Basically, is need to make this:
It has the React-PropTypes-to-prop-types codemods but, it seems that does not migrate the PropTypes of stateless components.
To install the codemods, follow the following steps:
npm install -g jscodeshift
git clone https://github.com/reactjs/react-codemod.git
(inside the root of the project)cd react-codemod && npm install
To run the migration is:
jscodeshift -t react-codemod/transforms/class.js <path>
As described in Migrating from React.createClass section.