Working through a React tutorial and come across the code below:
Why do the values being passed into the function have to have '{}' around them?
const Search = ({ value, onChange, onSubmit, children }) =>
<form onSubmit={onSubmit}>
<input
type="text"
value={value}
onChange={onChange}
/>
<button type="submit">
{children}
</button>