I\'m new to React.js ,I\'m creating a new application using react hooks, I get data from API and set it to state using setProductTypes() and then when i reading the that sat