SyntaxFix
Write A Post
Hire A Developer
Questions
onClick you should call function, thats called your function toggle.
onClick={() => this.toggle()}