What do you want to save?
Add Code snippet
New code examples
-
Html 2022-03-07 08:15:34
placeholder text html
<input placeholder="e.g. Name"> Add solution -
Html 2021-11-19 01:32:15
hint text html
<input placeholder="Name" ></input> Add solution -
Other 2021-10-17 23:36:07
styled-components example 2 with props
const Input = styled.input.attrs(props => ({ // we can define static props type: "text", // or we can define dynamic ones size: props.size || "1em", }))` color: palevioletred; font-size: 1em; border: 2px solid palevio... Add solution -
Javascript 2021-09-26 20:33:07
how to clear form fields in react after submit
// React.js // Set button type to "reset" <Form> <Input placeholder="Input"/> // ... // Set type="reset" <Button type="reset">Submit</Button> </Form> Add solution -
Javascript 2021-08-28 05:47:02
react pass prop to parent
//Form (Parent) import React, { useState, Component } from 'react'; import Input from '../../shared/input-box/InputBox' const Form = function (props) { const [value, setValue] = useState(''); const onchange = (data) => { setValue(dat... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5