From 0ea8514b1cdabd2df43df700666ac097e08c47fd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Jul 2016 20:05:40 +0200 Subject: [PATCH] Add configuration.yaml sample --- source/_cookbook/custom_panel_using_react.markdown | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/_cookbook/custom_panel_using_react.markdown b/source/_cookbook/custom_panel_using_react.markdown index 78e804dd0af..e18e22a4a2b 100644 --- a/source/_cookbook/custom_panel_using_react.markdown +++ b/source/_cookbook/custom_panel_using_react.markdown @@ -10,7 +10,7 @@ footer: true ha_category: Custom Panel Examples --- -This is a [React](https://facebook.github.io/react/) implementation of [TodoMVC](http://todomvc.com/) but instead of checking off to do items, you're turning lights and switches on/off. +This is a [React](https://facebook.github.io/react/) implementation of [TodoMVC](http://todomvc.com/) but instead of checking off to do items, you are turning lights and switches on/off. - It uses React to render the data. - It hooks into Home Assistant JS which means updates pushed from the server are instantly rendered. @@ -20,6 +20,13 @@ This is a [React](https://facebook.github.io/react/) implementation of [TodoMVC] All you need is available as a [custom component](https://github.com/home-assistant/home-assistant/tree/dev/config/custom_components/react_panel). +Create a entry for the panel in your `configuration.yaml` file to enable it. Set a title if you like. + +```yaml +react_panel: + title: 'React' +``` + This video shows the frontend in action.