From 6ccd523d092726f7a673159a18bafd9f216498b6 Mon Sep 17 00:00:00 2001 From: fengthedroid Date: Wed, 16 Aug 2017 16:58:49 -0700 Subject: [PATCH] Update application.jsx --- react-15/application.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/react-15/application.jsx b/react-15/application.jsx index 682a013..644d741 100644 --- a/react-15/application.jsx +++ b/react-15/application.jsx @@ -29,7 +29,7 @@ const Root = createClass({ } }, - changeName({target: {value: name}}) { + changeName(name) { this.setState({ name }) @@ -40,7 +40,15 @@ const Root = createClass({ return

This is a React 15 Microapp.

-

Tell me your name and I'll remember it between Microapps:

+

Tell me your name and I'll remember it between Microapps: + + this.changeName(name) + } + /> +

} })