NoteFormFields.js 360 B

123456789101112131415161718192021
  1. import React from "react";
  2. import { Field } from "react-final-form";
  3. import Label from "./Label";
  4. const Form = ({ initialValues }) => {
  5. return (
  6. <>
  7. <Label>
  8. Label:
  9. <Field
  10. name="label"
  11. component="input"
  12. initialValue={initialValues.label}
  13. />
  14. </Label>
  15. </>
  16. );
  17. };
  18. export default Form;