Posts by Pedro Barros • 23 points
1 post
-
1
votes1
answer49
viewsQ: How to use componentDidMount, componentWillUnmount and declare the initial state in functional components?
I’m trying to make a class component to functional component conversion. The code I have is: constructor(props) { super(props); this.state = SelectionToolbarStore.getState(); } componentDidMount() {…