zaguiini / formik-wizard

A multi-step form component powered by formik and react-albus
MIT License
86 stars 26 forks source link

React warning Step component #27

Open brechtarnou opened 4 years ago

brechtarnou commented 4 years ago

Hi all,

Could you please have a look at this? Warning: The component appears to be a function component that returns a class instance. Change Step to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. Step.prototype = React.Component.prototype. Don't use an arrow function since it cannot be called with new by React.

Kind Regards, Brecht

zaguiini commented 4 years ago

Hey there, @brechtarnou! Can you provide more context, please?