This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tag can be string or a function if we parse the functional component | |
type Tag = string | ((props: any, children: any[]) => JSX.Element); | |
// Attributes of the element – object or null | |
type Props = Record<string, string> | null; | |
// Element children – return value from the h() | |
type Children = (Node | string)[]; | |
export const h = (tag: Tag, props: Props, ...children: Children) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
*, *::before, *::after { | |
box-sizing: border-box; | |
} | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
OlderNewer