Open multiwebinc opened 4 years ago
Are you willing to send a PR? This will be the fastest way for us to get this fix out.
The error message explains how to run the codemod to rename the unsafe lifecycle for React 17.
@SBoudrias Are you sure that's how you would prefer to handle it? It sort of seems to me that that's more of a last resort option to just suppress the errors without having to actually fix your insecure code.
Either way, I executed npx react-codemod rename-unsafe-lifecycles
and the error still persists.
Yeah, the long term solution is 100% to have a proper refactor to fix those. But I just didn't want to ask too much from you in a PR. But if you're willing to help make this refactoring, I'll be happy to help review/merge/release.
On our side, we'll need to update once we bump our codebase to v17 (not officially released yet). But I'm not sure when that will be; at least not immediately.
I would love to help, but I've literally just started learning React (and ES6, JSX syntax) just a few days ago, so unfortunately it's a bit over my head for now.
When I set the
onSelect
attribute, the calendar doesn't work and I get an error in the console. Here is my code:Here is the error message: