Answers for "react-jsonschema-form is not assignable to type 'JSONSchema6'"

0

react-jsonschema-form is not assignable to type 'JSONSchema6'

// We need to provide a type for json schema
import Form from "react-jsonschema-form";
import { JSONSchema6 } from "json-schema";
import schema from "./form.jsonschema.json";

const App = () => {
  return (
    <div>
      <Form schema={schema as JSONSchema6} />
    </div>
  );
}
Posted by: Guest on May-27-2020

Code answers related to "react-jsonschema-form is not assignable to type 'JSONSchema6'"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language