Create a Hero
component that shows the first name, last name and the framework, and also a checkbox synced to the selected
property, and sends a select
event when clicked, having the payload { id, value }
, where id
is the hero's ID, and value
is the new selected
value.
- use the following markup:
<div>First Name</div>
<div>Last Name</div>
<div>Framework</div>
<div><input type="checkbox" /></div>