Quick introduction on how to use Datascript with Reagent to build web applications.
Given to the Cambridge NonDysFunctional Programmers Meetup on November 13th 2014.
1. Getting started with
Datascript & Reagent
for webapps
Brice Fernandes
@fractallambda
brice@fractallambda.com
tiny.cc/reactive-datascript
2. DataScript:
Datomic-like queries on Clojurescript browser objects
Reagent:
Clojurescript wrapper around Facebook’s
React.js reactive UI library
3. Hints
Use lein cljsbuild auto to rebuild
whenever your files are modified
Create a new tabset in LightTable: ^-space
then search for Tabset: Add a tablet
Create a browser tab in LightTable: ^-space
then search for Browser: Add browser tab
4. Rendering to the page1
Reagent Atoms are special2
Enter Datascript3
Binding Datascript & Reagent4
Fun with Datascript5