From 7c35cb1fedc3f309c75b283fce93898f298e0693 Mon Sep 17 00:00:00 2001 From: Dmitri Sotnikov Date: Tue, 2 Dec 2014 11:22:13 -0500 Subject: [PATCH] added documentation on creating template projects --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e6e9c7..79fae48 100644 --- a/README.md +++ b/README.md @@ -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: