"Places" demo-apps built in: jQuery, Angular 1, React 15.
Code simplified from todomvc.com versions. Originally used in talk given July 13, 2016 at Santa Cruz JavaScript. Slides.
This demo code is meant to:
- Provide an extremely simple application that can be quickly understood.
- Compare difference in development between jQuery, Angular 1, and React for various common tasks:
- Imperative binding of click handlers vs. declarative approach.
- Repetition in creation of multiple items.
- Class names
- (Optionally) Open
reset.html
to populate the localstorage. - Open jQuery/Angular app version's
index.html
.
(angular/index.html
,jquery/index.html
) - To run react, first follow the React Build steps below.
React version uses webpack and references the transpiled result in dist/__build__
.
To change React code, in the /react
directory:
npm install
- (Optionally) Make any code changes
gulp build
All app versions run entirely client-side, using localstorage.
All app versions use the same localstorage data.
All app versions share the same simple style in /css/main.css
.
jQuery specifically avoids templates which would be of use. This is to make the jQuery example more accesible and further underscore its default imperative approach.
Yes, these are real places, images mostly pulled from Wikipedia. If you're going, let me know.