this.setState({
[e.target.name]: e.target.value
})
Из js пока знаю мало - типы данных, циклы, условия, массивы, методы ,рекурсия чутка и тд, дальше ещё не дошел
const response = await axios.get('/api/category/categories')axios.get('/api/product/findById/'+ category._id)
.then(response => category.allProducts = response.data.products)
src={input > 800? logo1: logo2}
This method exists for rare use cases where the state depends on changes in props over time. For example, it might be handy for implementing a component that compares its previous and next children to decide which of them to animate in and out.