Skip to content

Instantly share code, notes, and snippets.

@hbstone
hbstone / react-checklist-en.md
Created June 30, 2024 15:52 — forked from marko-knoebl/react-checklist-en.md
A checklist for learning React - Fork it and start ticking off topics!

React topics checklist

A checklist for learning React - Fork it and start ticking off topics!

React fundamentals

  • use-cases of React
  • JavaScript basics for React
    • immutability / data management without mutations
  • updating properties of objects
@hbstone
hbstone / yummly-add.js
Created June 10, 2020 04:39
#bad-code 20200609
const yummlyAdd = (y,u,mm,ly, add) => { // Yummly Add!
const numbers = (x, y) => ~~x + ~~y; // MATH!
y[u](mm[ly][add](numbers)); // GUI! Code "readibility"!
process.exit(numbers); // exit code!
}
yummlyAdd(console, 'log', process, 'argv', 'reduce');
/* Examples:

Mithril.js for React People

This is a really basic "todo list" demo built with Mithril.

It's largely an ES6/ES2015 port of the Mithril's Getting Started guide, with a bit of sugar and opinion thrown in to make it look and feel a lot like React.

In this case we're using Babel's JSX transform to convert inline XML into hyperscript (just nested calls to Mithral's m() function).

A Pen by Jason Miller on CodePen.