mirror of https://github.com/status-im/reagent.git
added documentation on creating template projects
This commit is contained in:
parent
889de6bc22
commit
7c35cb1fed
|
@ -11,7 +11,13 @@ Reagent provides a way to write efficient React components using (almost) nothin
|
|||
* **[News](http://reagent-project.github.io/news/index.html)**
|
||||
* **[Reagent Project Mailing List](https://groups.google.com/forum/#!forum/reagent-project)**
|
||||
|
||||
To use Reagent you add this to your dependencies in `project.clj`:
|
||||
To create a new Reagent project simply run:
|
||||
|
||||
lein new reagent myproject
|
||||
|
||||
This will setup a new Reagent project with some reasonable defaults, see here for more [details](https://github.com/reagent-project/reagent-template).
|
||||
|
||||
To use Reagent in an existing project you add this to your dependencies in `project.clj`:
|
||||
|
||||
[reagent "0.4.3"]
|
||||
|
||||
|
@ -27,7 +33,6 @@ add
|
|||
|
||||
directly to your html.
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
Reagent uses [Hiccup-like](https://github.com/weavejester/hiccup) markup instead of React's sort-of html. It looks like this:
|
||||
|
|
Loading…
Reference in New Issue