reactjs - 用于多步表单中的表单恢复的临时数据库
问题描述
我是一名 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
解决方案
推荐阅读
- redis - redis-py:如何检查是否有任何与模式匹配的键
- python - 尝试在 Django 中设置不区分大小写的用户名时匹配查询错误
- express - 如何使用 passport-local-mongoose 进行异步身份验证调用?
- c# - 带有 Cognito/OIDC 的 Visual Studio AWS 无服务器应用程序获得 ERR_TOO_MANY_REDIRECTS
- winapi - 是否可以在 Windows 上的用户模式应用程序中从内核模式驱动程序调用函数?
- python - 如何在不传递第一个参数的情况下将第二个参数传递给函数?
- algorithm - 为什么函数括号中有两个空分号(;)?
- python - 我如何创建角色并将它们放在首位? discord.py
- html - 为什么我的页脚没有显示在文档中?
- powershell - 通过 powershell 检测所有操作系统的 SMB1 版本