Skip to content

Instantly share code, notes, and snippets.

View Forison's full-sized avatar
🏠
Working from home

Addo Forison Forison

🏠
Working from home
  • Full-stack developer at Rewardful
  • GHANA
View GitHub Profile
- The constructor was spelt wrongly we have to change it to this to make avoid syntax error related to this.
```
constructor(props) {
super(props)
this.state = {
isOpen: false,
};
}
```
- Let us also validate our props-types whenever we use a prop like label.