Skip to content

Instantly share code, notes, and snippets.

View shayc's full-sized avatar

Shay Cojocaru shayc

  • Microsoft
  • Israel
View GitHub Profile
<input
type="file"
accept=".obf, .obz"
onChange={event => {
readFiles(event.target.files);
}}
/>
export async function readFiles(files: FileList): Promise<BoardSet[]> {
const obz = await parseOBZ(await readOBZFile(file))
@shayc
shayc / index.html
Created April 20, 2020 07:06
Touch logger
<html>
<head>
<title>Touch logger</title>
<style>
html,
body {
width: 100%;
height: 100%;
}
@shayc
shayc / temp
Created December 5, 2021 08:24
Fluent UI uses CSS-in-JS - We should opt for that as well.
Formik vs react-hook-form
Formik is older, components take longer to mount, re-renders the entire form on field change.
react-hook-form was written to replace Formik, better mount and rendering performance
Both Formik and react-hook-form have good community adoption (above 1mil npm weekly downloads)
Formik - https://www.npmjs.com/package/formik
Size - 13kB