How to use @tinacms/core - 1 common examples

To help you get started, we’ve selected a few @tinacms/core 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 / @tinacms / react-core / src / use-form.ts View on Github external
function createForm() {
      if (!options.initialValues) return
      const form = new Form(options)
      setForm(form)
      const unsubscribe = form.subscribe(
        form => {
          setValues(form.values)
        },
        { values: true }
      )

      return () => {
        unsubscribe()
      }
    },
    [options.id, !!options.initialValues]

@tinacms/core

The `@tinacms/core` package provides the core objects for building amazing content management systems.

Apache-2.0
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis

Popular @tinacms/core functions