A JavaScript function that takes one or more <1> is defined with the same number of <2>
// definition --> `name` is the <3>
function greeting(name) {
return `Hello ${name}`;
}
useState
hook, state is managed locally– that is, the state variables are exposed only within the component where they are definedvalue
of an <input />
, for example, in a controlled component is set by the <5> part of the useState
hook.<input />
does not have a <6> attribute, its state is controlled by HTML.react-router
is an NPM library