Quick start: ASP.Net Core 3.1, Entity Framework Core, CQRS, React JS Series — Part 12: Form creation, validation and post requests
Dec 29, 2020
Outline
- Github Repository
- Creating modals for success and failure responses
- Install the form creation package
- Using the DynamicFormCreation type for Create record purpose
- Conclusion with demonstration
The parent content of this series: Quick start: ASP.Net Core 3.1, Entity Framework Core, CQRS, React JS Series
Github Repository
Creating modals for success and failure responses
Stateless SuccessModal.js
Stateless ErrorModal.js
Install the form creation package
npm install — save react-interactive-dynamic-form-generator
Using the DynamicFormCreation type for Create record purpose
CreateProduct component;
Imports:
Form Fields:
Component implementation:
Using in App.js routes
Conclusion with demonstration
Modals and forms are created.