Redux form
const file_upload= ({ input, type, meta: { touched, error, warning } }) => {
delete input.value
return (
<div>
<label htmlFor={input.name}>
<input {...input} type={type}/>
</label>
</div>
)
}
5
1
import { Form } from 'redux-form' // ES6
Thank you!
1
0
4.33
3
export default ({ input: { onChange, value }}) => (
<input
type="text"
placeholder="Write something..."
className="uk-input"
onChange={onChange}
value={value}
/>
);
Thank you!
3
0
Are there any code examples left?
New code examples in category Other