@enspyred/universal-form
v1.1.1
Published
@enspyed/ujniversal-form
Downloads
9
Readme
Universal Form
@enspyed/ujniversal-form
Why a package was created
To create a universal form that will ease implementation of Form, Form Controls, Validation, Feedback and API calls.
Local Development
Rather than pushing to NPM on every change, we can link in our projects as follows
This Package
yarn link
This will create a link to this package in NPM locally - so you can then symlink to it in a consuming project
Link to consumer package react
We also need to make sure that we do not duplicate the React package and get errors.
Run the following command in this package. where ../path/to/consumer/node_modules/react
is the path to the react in your consumer node_modules folder.
npm link ../path/to/consumer/node_modules/react
Example
npm link ../universal-form-consumer/node_modules/react
Consumer Package
after yarn linking the package, as described above, we can now link to it from the consuming package
yarn link "@enspyred/universal-form"