Skip to content

Instantly share code, notes, and snippets.

/** @version 0.1 */
const html = (strings, ...values) => (
Array.from(strings).map((string, index) => (
string + (
Array.isArray(values[index])
? values[index].join("")
: (new Option(values[index])).innerHTML
)
)).join('')
)
@aishikaty
aishikaty / router.js
Last active September 13, 2020 21:45
Router in a tweet
function(b,d,a,c){(onhashchange=function(){for(a in b)if(c=RegExp("^#?"+a+"$").exec(location.hash))return d(b[a].apply(0,c.slice(1)))})()}
@aishikaty
aishikaty / LICENSE.txt
Last active March 11, 2017 13:39 — forked from 140bytes/LICENSE.txt
Module loader in CommonJS style
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@aishikaty
aishikaty / tiny-view-libraries.md
Last active July 24, 2024 18:59
Tiny JavaScript UI

☀️ UI Libraries

  • redom (1.6k) - Tiny turboboosted JavaScript library for creating user interfaces
  • frzr (1.6k) - Turboboosted 2 KB view library for browser & node.js
  • killroy (1.9k) - A tiny ui library inspired by React
  • real-dom (0.7k) - A ~1K non-virtual DOM non-framework framework for simple apps
  • domchanger (1.8k) - Dombuilder that applies diffs only to the real dom
  • vomit (3.2k) - A high order function using virtual dom to build user interfaces
  • bel (3.5k) - A simple library for composable DOM elements using tagged template strings
  • yo-yo (5.4k) - A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals (build on bel)
  • [choo](https://github.com/yos