is await an http call.
I solved that for components that are using state as the data source by setting an initial state, what about when the data is coming from the props?
componendDidMount is always called after the first time component is mounted
render calling before compnentDidMount cuz DOM needs to be created before geting mount
if You need initial props, you can use defaultProps
Обсуждают сегодня