diff --git a/README.md b/README.md index 1e5673f..af4fc84 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ const view = buildView(machine, actions, selectors, slots, ({ actions, selectors
Count: {selectors.count}
+ {selectors.showSecret &&The secret password is hunter2
} ); }); @@ -186,4 +187,4 @@ are planning on rendering the view using the xstate-tree machine itself, or test via the view. It's a simple function that takes a name argument and returns a basic xstate-tree machine that you -can replace slot services with. It just renders a div containing the name supplied \ No newline at end of file +can replace slot services with. It just renders a div containing the name supplied