6 Matching Annotations
- Oct 2020
-
-
JSX has the advantage of being fast, but the disadvantage that it needs to be preprocessed before working. By using template string virtual-html, we can have it work out of the box, and optimize it by writing a browserify transform. Best of both!
See also: https://github.com/choojs/nanohtml#static-optimizations
(this person later recommends this library)
-
-
github.com github.com
-
require('modules') in the browser
-
Use a node-style require() to organize your browser code and load modules installed by npm.
-
Now just use the browserify command to build a bundle starting at main.js:
-
-
github.com github.com
-
-
browserify is a tool for compiling node-flavored commonjs modules for the browser.
-