From 34af472bd3e901c6da9f59840f7d57cbb3972918 Mon Sep 17 00:00:00 2001 From: Jeremy Shimko Date: Sun, 6 Dec 2015 16:10:37 -0500 Subject: [PATCH] clarify React usage in README --- README.md | 118 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 70 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 3df110d..c94ca4c 100644 --- a/README.md +++ b/README.md @@ -58,81 +58,78 @@ AccountsTemplates.configure({ }); ``` -Useraccounts:flow-routing uses the internal useraccounts - -```fullPageAtForm``` is the built-in template useraccounts uses by default for its forms. You can override it on a per-route basis (see below) or replace it with ```defaultTemplate:``` field as above (templates specified in route config will still take precedence). Omit ```defaultTemplate``` (or set to an empty string) to use the ```fullPageAtForm``` template built-in to your useraccounts UI package (ex [material](https://github.com/meteor-useraccounts/materialize/blob/master/lib/full_page_at_form.html)). +`useraccounts:flow-routing` uses the internal useraccounts `fullPageAtForm` is the built-in template useraccounts uses by default for its forms. You can override it on a per-route basis (see below) or replace it with `defaultTemplate:` field as above (templates specified in route config will still take precedence). Omit `defaultTemplate` (or set to an empty string) to use the `fullPageAtForm` template built-in to your useraccounts UI package (ex [material](https://github.com/meteor-useraccounts/materialize/blob/master/lib/full_page_at_form.html)). NOTE: The above configs must load BEFORE your AccountsTemplates routes are defined (next section). ## React Configuration -Firstly, please ensure that your app depends upon the [React Layout][3] and the [Blaze Layout][2] packages. - User Accounts currents only renders Blaze templates. In order to use User Accounts with React we rely on the [Blaze To React][4] package to render the User Accounts templates. +Firstly, please ensure that your app depends upon the [React Layout][3] and the [Blaze Layout][2] packages. User Accounts currents only renders Blaze templates. In order to use User Accounts with React we rely on the [Blaze To React][4] package to render the User Accounts templates. Before you configure routes for User Accounts with Flow Router, you will need to make sure you have set a few default configuration items. -Assuming you have a main layout that looks like this: +Assuming you have a main layout that looks like following and you have `