added documentation on creating template projects

This commit is contained in:
Dmitri Sotnikov 2014-12-02 11:22:13 -05:00
parent 889de6bc22
commit 7c35cb1fed
1 changed files with 7 additions and 2 deletions

View File

@ -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: