diff --git a/12_Day_Forms/12_forms.md b/12_Day_Forms/12_forms.md index 2972c0d..e54d3d4 100644 --- a/12_Day_Forms/12_forms.md +++ b/12_Day_Forms/12_forms.md @@ -122,6 +122,9 @@ class App extends Component { ) } } + +const rootElement = document.getElementById('root') +ReactDOM.render(, rootElement) ``` We usually use form to handle use information. Let us move to form section and make use the form element. @@ -207,6 +210,9 @@ class App extends React.Component { ) } } + +const rootElement = document.getElementById('root') +ReactDOM.render(, rootElement) ``` The above form handles only text types but do have different input field types. Let's do another form which handle all the different input field types. @@ -887,7 +893,7 @@ ReactDOM.render(, rootElement) ## Exercises: Level 2 -1. Validate the form given above (a gif image or a video will be provided later) +1. Validate the form given above (a gif image or a video will be provided later). First try to validate without using any library then try it with validator.js. ## Exercises: Level 3