From 78e5a53c3bbc1ef0318a2975a9b37be2e3548c24 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Wed, 5 Jun 2019 21:58:09 -0700 Subject: [PATCH] Doc update --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aa3e00c..c272db2 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,13 @@ A custom component would look like the following: ``` rust use alchemy::{Component, ComponentKey, Error, Props, rsx, RSX}; -pub struct MySpecialWidget; +#[derive(Default)] +pub struct MySpecialWidgetProps; + +#[derive(Props)] +pub struct MySpecialWidget { + props: MySpecialWidgetProps +} impl Component for MySpecialWidget { fn new(key: ComponentKey) -> MySpecialWidget {