Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
import {
Form,
Input,
Button,
Checkbox,
Field,
} from '@alicloud/console-components'
import { combineReducers, createStore } from 'redux'
import { Provider, connect } from 'react-redux'
const CheckboxGroup = Checkbox.Group
function formReducer(
state = { email: '', username: 'xiachi', fruit: ['apple'] },
action
) {
switch (action.type) {
case 'save_fields':
return {
...state,
...action.payload,
}
default:
return state
}
}
class FormDemo extends React.Component {