Don't store values in HTML elements with React

preview_player
Показать описание
Don't use HTML elements to store values in React! #react #reactjs #reactjsdeveloper #programming #progammer #frontend #coding #code
Рекомендации по теме
Комментарии
Автор

Only this isn't the best practice, using elements ID and other data helps DRY and reusability of the code. In fact removing the element's ID is a bad practice.
Elements have ID, name, type, data and other attributes for a reason

rkingham
welcome to shbcf.ru