@indiefin/card-form
v1.0.5
Published
## Get up and running
Downloads
23
Readme
Indie Card Form
Get up and running
Install development tools
Docker (https://www.docker.com/)
Start application for development
docker-compose up
Navigate to http://localhost:6006/
Usage
import CardForm from '@indiefin/card-form';
const cancelAction = () => console.log('cancel');
const submitAction = form => console.log(form);
const Component = () => (
<CardForm cancelAction={cancelAction} submitAction={submitAction} />
);
export default Component;
Testing
docker-compose run --rm app yarn test
- Test framework: Jest (https://facebook.github.io/jest/)
- Assertion library: Chai (http://chaijs.com/guide/styles/#expect)