Open usamarehan557 opened 3 years ago
toggleExpanded = () => { this.setState({ collapsed: !this.state.collapsed }); };
unable to change above lines of code in functional components.....any body can help ?
Functional components should use the useState hook instead
useState
toggleExpanded = () => { this.setState({ collapsed: !this.state.collapsed }); };
unable to change above lines of code in functional components.....any body can help ?