Uncaught TypeError Cannot read properties of undefined reading 'setState' reactjs onClick event bind
Автор: Tech Nursery
Загружено: 2022-02-10
Просмотров: 4607
Описание:
In this video ,we fixed the error Uncaught TypeError Cannot read properties of undefined (reading 'setState') react-dom.development js 4091
onClick event Button React Native/React js at clickHandler (Button js:15:1)
We explained two options .you can use any of them
first option is to add a line into constructor function of class component in react js /react native
second option is to rewrite the event handler as arrow function .In this case we modified loginHandler as arrow function
Uncaught TypeError
Cannot read properties of undefined (reading 'setState')
react-dom.development
eventHandler
eventBinding
this keyword
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: