formik-wizard icon indicating copy to clipboard operation
formik-wizard copied to clipboard

React warning Step component

Open brechtarnou opened this issue 4 years ago • 1 comments

Hi all,

Could you please have a look at this? Warning: The <Step /> 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

brechtarnou avatar Apr 28 '20 15:04 brechtarnou

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

zaguiini avatar Jun 07 '20 18:06 zaguiini