From c129ce29dc269c9a8748f6c6f09b4c1284b8bdca Mon Sep 17 00:00:00 2001 From: RanolP Date: Fri, 21 Feb 2020 12:50:52 +0900 Subject: [PATCH] Update README.md again --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bc1937d..7d8a989 100644 --- a/README.md +++ b/README.md @@ -39,14 +39,17 @@ Read like *spike*. ShouldRender update(Msg&& msg) { if (increment == msg) { set_count([](previous) { - previous + increment[0], + return previous + increment[0]; }) + return true; } if (decrement == msg) { set_count([](previous) { - previous - decrement[0], + return previous - decrement[0]; }) + return true; } + return false; } Node render() { return ( @@ -74,7 +77,7 @@ Read like *spike*. ); ``` -2. :tada: We can implement React-like API on C++ +1. :tada: We can implement React-like API on C++ ## Modules