...
- Create a .jsx file with an appropriate name(preferably the same name as the designer) in the /src/components directory.
- Create an appropriate render method.
- Create functions to handle the actions performed by user such as onClick, onChange etc.
- Check the propTypes passed to the component.
- Finally register the component using the Component Store. Use the same name as the one used during creation of the designer component.
- If there are any validations to be performed, create checks for them in /src/helpers/controlsHelper.js
- Finally handle those checks in /src/helpers/Validator.js . This will keep the code neat and will help others in the future.
Check out the following links and its associated repo for a sample component. The sample component is a Date Calculator which calculates a Future date based on the provided date.