start over with nextjs

This commit is contained in:
Thomas Ruoff
2021-02-25 00:31:28 +01:00
parent 3a77e7f22b
commit 214d95d3d7
68 changed files with 3047 additions and 18576 deletions

18
components/Select.tsx Normal file
View File

@@ -0,0 +1,18 @@
import React from 'react';
export default (props) => {
const { options = [] } = props;
return (
<label>
{props.text}
<select
className={props.name}
onChange={props.onchange.bind(null, props.name)}
value={props.value}
>
{options.map((option) => <option value={option.value} key={option.value}>{option.name}</option>)}
</select>
</label>
);
}