mach-react

Fast, and tiny react implementation.

Usage no npm install needed!

<script type="module">
  import machReact from 'https://cdn.skypack.dev/mach-react';
</script>

README

Mach React

build status NPM version Coverage Status Davis Dependency status experimental

Pros

  • Only ~12.5KB when minified and gzipped. Read through the code in a day.
  • Works like React with Radium, does css auto-prefixing and merging.
  • Runs much faster than production React, less code === faster.
  • Unstrict, and immutability is optional.
Cons
  • Experiment and unstabled. Expect bugs and memory leaks.
  • Created by an insane web developer.
  • Unstrict, and immutability is optional.
Benchmark

Based on Todo example from React docs. This benchmark adds about 200 todos with very long strings and random numbers in them. It removes and re-adds the todos as much as possible for about 5 seconds. First it runs against React, then Mach React. On my machine Mach React runs about twice as fast as standard React in production mode.

image

Credits

  • React Facebook -- Copied Component design.
  • Radium -- Copied css auto-prefixing and css mixins for Components.
  • virtual-dom -- Main dependency, provides virtual dom implementation.
  • material-ui -- Copied project build process.