0.1.2 • Published 5 years ago

@whatwedo/frontier-forms v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Frontier forms npm version

Data-driven forms that let you focus on what matters: your application.

Provide a GraphQL mutation and <Frontier/> will do the rest for you.

Both fast to use and performant ⚡!

➡️ See all capabilites by watching the introduction talk from React Europe 2019!

import gql from "graphql-tag";
import { Frontier } from "frontier-forms";
import { myApplicationKit } from "./uiKit";
import { client } from "./apollo-client";

const mutation = gql`
    mutation($user: User!) {
      createUser(user: $user) { id }
    }
`;

<Frontier
  client={client}
  mutation={mutation}
  uiKit={myApplicationKit}
/>

Installation

In order to use Frontier, you will need:

  • react (^16.8.6)
  • apollo-client (^2.5.1)
  • graphql-tag (^2.10.1)

Then, install frontier-forms:

yarn add frontier-forms

OR

npm i frontier-forms

Links