You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
People are having difficulties with understanding how the polyfill actually works (what does it actually do). gpbl/react-day-picker#685
Perhaps the README could be more descriptive about that, something like:
importReactfrom'react';import{polyfill}from'react-lifecycles-compat';classExampleComponentextendsReact.Component{getSnapshotBeforeUpdate(prevProps,prevState){ ... }staticgetDerivedStateFromProps(props,state){ ... }
...
}// Polyfill your component so the new lifecycles will work with older versions of React:polyfill(ExampleComponent);exportdefaultExampleComponent;
The text was updated successfully, but these errors were encountered:
People are having difficulties with understanding how the polyfill actually works (what does it actually do).
gpbl/react-day-picker#685
Perhaps the README could be more descriptive about that, something like:
The text was updated successfully, but these errors were encountered: