From a247c430807540e286fe26804235eb99be6d028b Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 10 May 2018 17:02:47 -0400 Subject: [PATCH] Form generation for view/constant/pure functions --- lib/modules/scaffolding-react/templates/dapp.js.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/modules/scaffolding-react/templates/dapp.js.tpl b/lib/modules/scaffolding-react/templates/dapp.js.tpl index f209a296a..023c64a0e 100644 --- a/lib/modules/scaffolding-react/templates/dapp.js.tpl +++ b/lib/modules/scaffolding-react/templates/dapp.js.tpl @@ -187,7 +187,11 @@ class {{contractName}}UI extends React.Component { } render(){ - return (

Test

); + return (
+ {{#each functions}} + <{{capitalize name}}_{{@index}}_Form /> + {{/each}} +
); } }