[go: up one dir, main page]

Skip to content

saga-slice/helpers

Repository files navigation

Get Started

components/pies/saga-slice.js

import { crudSlice } from 'saga-slice-helpers';

const sagaSlice = crudSlice({
    name: 'pies'
});

export const { actions } = sagaSlice;
export default sagaSlice;

components/pies/Form.jsx

import { actions } from './saga-slice';

export default connect(
    null,
    actions
)((props) => {
    
    const onSubmit = (values) => props.create(values)
    
    return (
        <Form onSubmit={ onSubmit }>
            ...
        </Form>
    );
})

About

Helpers for `saga-slice`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published