【问题标题】:Is there a way to autofill a Form component in ReactJS?有没有办法在 ReactJS 中自动填充表单组件?
【发布时间】:2020-10-28 06:23:24
【问题描述】:

我使用 reactstrap 制作表单组件,例如姓名、消息和电子邮件。当我运行 npm start 时,有没有办法读取 API 并填充文本字段?

我能够获取 JSON 文件的内容以显示在文本框之外,但我不确定表单是如何填写的。

【问题讨论】:

    标签: node.js json reactjs api reactstrap


    【解决方案1】:

    我建议你使用react-autocomplete

    npm i react-autocomplete

    更多细节在这里:https://www.npmjs.com/package/react-autocomplete

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-30
      • 2013-08-07
      • 2019-12-13
      • 2021-08-03
      相关资源
      最近更新 更多