首页 > 解决方案 > 用于多步表单中的表单恢复的临时数据库

问题描述

我是一名 api 开发人员,在一家希望从大型 CMS 迁移到 React Web 前端框架的公司工作。

我得到了一个新的要求,即我们网站上的所有多页表单都应该可以重新启动,我必须为此设计一些解决方案。

让我们看下面的例子......

Form 1 - Select your product
Form 2 - Enter your details
Form 3 - Enter Payment details

我认为它的工作方式是表单上的第一个字段是您的电子邮件地址。从那里单击多步骤表单中的每个下一步按钮(即在提交每个步骤之后)使用电子邮件地址作为标识符来持久化那些已经提交到 DynamoDB 的表单。

That means if I had an incomplete form and come back, when I enter me email address it might be able to pick up my persisted data from DynamoDB.

I'd like to get some thoughts on this solution from the Reactjs developers. And if this has been done previously by others I'd love to hear your ideas on alternatives.

thanks

标签: reactjs

解决方案


推荐阅读