Closed Falgantil closed 1 year ago
By always using 'props.selectedValue' instead of storing it internally in the State, it opens up the opportunity to change the selected value from outside the component. Very useful if you don't know the value at initial-render-time.
By always using 'props.selectedValue' instead of storing it internally in the State, it opens up the opportunity to change the selected value from outside the component. Very useful if you don't know the value at initial-render-time.