Virtual DOM + JSX Showdown
Comparing React with three other virtual DOM libraries that support JSX components by building a simple component based markdown editor.
Read the article on SitePoint: 3 Lightweight React Alternatives: Preact, VirtualDom & Deku
- Version: 0.14.7
- Lines of Code: 61
- Bundle Size: 154.1kb
- Gzipped: 45.3kb
- Codepen: http://codepen.io/SitePoint/pen/qZxpeP
- Version: 2.0.0-rc16
- Lines of Code: 80
- Bundle Size: 51.2kb
- Gzipped: 15.3kb
- Codepen: http://codepen.io/SitePoint/pen/NNyXQZ
- Version: 0.14.7
- Lines of Code: 62
- Bundle Size: 30.6kb
- Gzipped: 10.5kb
- Codepen: http://codepen.io/SitePoint/pen/reJJBW
- Version: 2.1.1
- Lines of Code: 85
- Bundle Size: 50.5kb
- Gzipped: 15.2kb
- Codepen: http://codepen.io/SitePoint/pen/reJJNW
This repository contains everything you need to make performance testing builds for the markdown editors. An ES5 snapshot of the Codepen sources has been included in
src/ and you can install the other dependencies with
npm install. Run
make minify to create a build, then find the appropriate HTML in
make compile to create an unminified build.
make minify to create a minified build.
make gzip to gzip a minified build (size testing artifact).
make minify-deps to create a minified versions of each dependency (size testing artifact).
make clean to delete all built code.
The MIT License (MIT)
Copyright (c) 2016 SitePoint
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.