mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 15:28:09 +00:00
Readme WIP
This commit is contained in:
parent
8f92087a21
commit
470bcc430f
@ -9,13 +9,15 @@ Todo:
|
|||||||
|
|
||||||
re-frame is a tiny [Reagent] framework for writing [SPAs] using ClojureScript.
|
re-frame is a tiny [Reagent] framework for writing [SPAs] using ClojureScript.
|
||||||
|
|
||||||
This repo has documents which propose a **pattern** for structuring an SPA using ClojureScript and Reagent. The repo also contains a **reference implementation**.
|
This document proposes a **pattern** for structuring an SPA using ClojureScript and Reagent. The repo also contains a **reference implementation**.
|
||||||
|
|
||||||
re-frame is not MVC. There are no objects, just data and pure functions. It is a RACES framework - Reactive-Atom Component Event Subscription framework (I love the smell of acronym in the morning).
|
re-frame is not MVC. There are no objects, just data and pure functions. It is a RACES framework - Reactive-Atom Component Event Subscription framework (I love the smell of acronym in the morning).
|
||||||
|
|
||||||
### Overview
|
### Overview
|
||||||
|
|
||||||
The re-frame pattern is delightfully simple. So simple, in fact, that the reference implementation in this repo is barely 100 lines of code. That compares to 10s of thousands in Angular or Ember. (And, yes, I'm cheating ... to be fair, I should include the few hundred lines in Reagent too, but you get the idea.)
|
The re-frame pattern is delightfully simple, yet powerful.
|
||||||
|
|
||||||
|
Its is so simple, in fact, that the reference implementation in this repo is barely 100 lines of code. That number compares to 10s of thousands in Angular or Ember. And, yes, I'm cheating ... to be fair, I should include the few hundred lines in Reagent too, plue the 1000s in Reactjs itself, but you get the idea - you can deeply understand re-frame in an afternoon.
|
||||||
|
|
||||||
To build an app using re-frame, you:
|
To build an app using re-frame, you:
|
||||||
- design your app's data structure (data layer)
|
- design your app's data structure (data layer)
|
||||||
@ -722,5 +724,3 @@ All the parts are lovely and simple. And they plug together nicely.
|
|||||||
[Hoplon]:http://hoplon.io/
|
[Hoplon]:http://hoplon.io/
|
||||||
[Pedestal App]:https://github.com/pedestal/pedestal-app
|
[Pedestal App]:https://github.com/pedestal/pedestal-app
|
||||||
[Herbert Schema]:https://github.com/miner/herbert
|
[Herbert Schema]:https://github.com/miner/herbert
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user