I am beginner in react and I am learning about lifecycle hooks. I came across some articles stating don\'t call setState synchronously inside componentDidMount. But we can setSt