How to use the gatsby-tinacms-json.useJsonForm function in gatsby-tinacms-json

To help you get started, we’ve selected a few gatsby-tinacms-json examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tinacms / tinacms / packages / demo-gatsby / src / components / bio.js View on Github external
}
      dataJson(fileRelativePath: { eq: "/data/author.json" }) {
        id
        firstName
        lastName
        location
        social {
          twitter
        }
        fileRelativePath
        rawJson
      }
    }
  `)

  const [author] = useJsonForm(data.dataJson, {
    label: "Author",
    fields,
  })

  /*
    //for testing single / multiple forms
   const author = data.dataJson
  */

  return (
    <div style="{{">
      </div>

gatsby-tinacms-json

A Gatsby/Tina plugin for **editing JSON files stored in git**.

Apache-2.0
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis