Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React warning Step component #27

Open
brechtarnou opened this issue Apr 28, 2020 · 1 comment
Open

React warning Step component #27

brechtarnou opened this issue Apr 28, 2020 · 1 comment

Comments

@brechtarnou
Copy link

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
Copy link
Owner

zaguiini commented Jun 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants