From b32143d63d1062d1bdf0aa243d6a3dcf39b9fb07 Mon Sep 17 00:00:00 2001 From: Michael Witrant Date: Wed, 10 Feb 2016 09:25:55 +0100 Subject: [PATCH] Fix syntax in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a45e9202b7..f71395a30b 100644 --- a/README.md +++ b/README.md @@ -327,8 +327,8 @@ From your Rails view, you can use the provided helper `redux_store(store_name, p **app/views/layouts/application.html.erb** ```erb ... -<% redux_store("appStore", @react_props) %>; -<%= render_component("NavbarApp") %> +<%= redux_store("appStore", @react_props) %>; +<%= react_component("NavbarApp") %> yield ... ``` @@ -337,12 +337,12 @@ Components are created as [stateless function(al) components](https://facebook.g **_comments.html.erb** ```erb -<%= render_component("CommentsApp") %> +<%= react_component("CommentsApp") %> ``` **_blogs.html.erb** ```erb -<%= render_component("BlogsApp") %> +<%= react_component("BlogsApp") %> ``` *Note:* You will not be doing any partial updates to the Redux store when loading a new page. When the page content loads, React on Rails will rehydrate a new version of the store with whatever props are placed on the page.