mciccarelli / gatsby-cloud-serverless-test

The default Gatsby starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gatsby basic form Functions example

This example shows how to build a form with react-hook-form that submits to a Gatsby Function.

  1. Start developing.

    To get started clone this repo locally and run npm install to add all necessary packages.

    cd examples/functions-basic-form
    npm install
    npm run develop
  2. Open the code and start customizing!

    Your site is now running at http://localhost:8000! You can use the UI on the index page to test the functions or directly access them at http://localhost:8000/api/form

    Try editing the function in src/api/form.ts or form at src/pages/index.js

  3. Deploy

You can deploy this example on Gatsby Cloud by copying the example into a new repo and connecting that to Gatsby Cloud.

ezoic increase your site revenue


The default Gatsby starter


Language:JavaScript 90.1%Language:TypeScript 9.9%