🌍 Public
Viewing a saved revision (read-only)
f7b8b797151f4b48bd2348f729a08e3a
React Radio Buttons
This example demonstrates a simple React user interface where two radio buttons, labeled Size and Count, toggle a selection. The interface uses React’s `useState` hook to track the currently chosen value, which is logged to the console on change. The `Radio` component receives an `onSelectedValueChange` callback prop, invoked with the selected `event.target.value` upon input change. Built with React 16.13.1 and rendered via `ReactDOM`, it showcases controlled component state management without any external data or visualization libraries.
AI-generated descriptionReact Starter code.