Skip to content

Instantly share code, notes, and snippets.

View maladr0it's full-sized avatar

Lachlan Bradford maladr0it

View GitHub Profile
{
"presets": [
"@babel/preset-env",
"@babel/preset-typescript",
"@babel/preset-react"
]
}
import React, { useState } from "react";
type Values = Record<string, boolean> | null;
interface Props {
items: {
label: string;
value: string;
}[];
onSubmit: (values: Values) => void;
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},