data.map(item => (
<option key={item.id} selected={item.year === 2020}>{item.year}</option>
))
function CurrentForm() {
const { values, setFieldValue, handleSubmit } = useFormikContext();
return (
<form onSubmit={handleSubmit}>
<Input1 />
<Input2 />
<Input3 />
<Button />
</form >
);
}
<Switch>
<Route path='/landing' component={() => {
window.location.href = 'https://example.com/1234';
return null;
}}>
</Route>
</Switch>