From 6d3a3e2634c4a5464114596a737cbd1503500873 Mon Sep 17 00:00:00 2001 From: Manish Choudhary <47037694+mxnxsh@users.noreply.github.com> Date: Wed, 7 Oct 2020 11:30:27 +0530 Subject: [PATCH] Update forms.md --- content/docs/forms.md | 60 +++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 34 deletions(-) diff --git a/content/docs/forms.md b/content/docs/forms.md index 3d4292c8979..3db59632785 100644 --- a/content/docs/forms.md +++ b/content/docs/forms.md @@ -135,44 +135,36 @@ In HTML, ` - - - - - - - - - ); - } + }; + return ( +
+ + +
+ ); } +const rootElement = document.getElementById("root"); + +ReactDOM.render(, rootElement); ``` -[**Try it on CodePen**](https://codepen.io/gaearon/pen/JbbEzX?editors=0010) +[**Try it on CodeSandBox**](https://codesandbox.io/s/controlled-select-example-fls8j) Overall, this makes it so that ``, `