By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| // semantic-ui-form.js | |
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { Form, Input } from 'semantic-ui-react'; | |
| export default function semanticFormField ({ input, type, label, placeholder, meta: { touched, error, warning }, as: As = Input, ...props }) { | |
| function handleChange (e, { value }) { | |
| return input.onChange(value); | |
| } |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents