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

task done #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

LukaszZawadzki
Copy link

No description provided.

Copy link
Member

@mhagmajer mhagmajer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting your solution to our newsletter task. It looks solid, congrats!

@@ -1,12 +1,53 @@
import React from 'react';

export default class ThreeButtons extends React.Component {
constructor() {
super();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When calling parent's constructor we need to remember to pass the constructor's argument - props

constructor(props) {
  super(props);
}

More about the constructor in React components: https://reactjs.org/docs/react-component.html#constructor

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

Successfully merging this pull request may close these issues.

2 participants