React 18: Dynamic Select Element Populated with Options from data from the 'State'

preview_player
Показать описание
In this video we look at React 18 (and Babel) generating a dynamic select with options that are derived from data in the state set by the component class's constructor. The select has an onchange event that changes the state (the selected option). Since the render method depends on the state, it gets called/updated whenever the user chooses a new option.
Рекомендации по теме
welcome to shbcf.ru