Doc update

This commit is contained in:
Ryan McGrath 2019-06-05 21:58:09 -07:00
parent 28e4f21baa
commit 78e5a53c3b
No known key found for this signature in database
GPG key ID: 811674B62B666830

View file

@ -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 {