Skip to content

Commit

Permalink
cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
carocad committed Oct 5, 2018
1 parent 1f40db1 commit b6057c1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@

Reactive [Datascript](https://github.com/tonsky/datascript/) queries through [Reagent's](https://github.com/reagent-project/reagent) track mechanism

## Usage
## Example

Just use reagent as you normally would. The only difference is in
how you fetch the data. Use Datascript queries and pull patterns :)

```clojure
(ns example.core
(:require [datascript.core :as data]
(:require [reagent.core :as reagent]
[datascript.core :as data]
[hiposfer.rata.core :as rata]))

;; WARNING: dont do this at home
Expand All @@ -29,6 +33,9 @@ Reactive [Datascript](https://github.com/tonsky/datascript/) queries through [Re
^{:key i}
[:div "hello " i])]))


(reagent/render-component [hello-world]
(. js/document (getElementById "app")))
```


Expand Down

0 comments on commit b6057c1

Please sign in to comment.