@formcarry/react
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@formcarry/react", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "React Hooks library for Formcarry | formcarry.com", | ||
@@ -5,0 +5,0 @@ "main": "./dist/useForm.js", |
@@ -38,3 +38,3 @@ # Formcarry React | ||
// Success message | ||
if (state.succeeded) { | ||
if (state.submitted) { | ||
return <div>Thank you! We received your submission.</div>; | ||
@@ -41,0 +41,0 @@ } |
@@ -5,3 +5,3 @@ import { useState, useEffect } from 'react' | ||
export default function useForm(props: Props) { | ||
export function useForm(props: Props) { | ||
const { id, debug = true, extraData } = props | ||
@@ -8,0 +8,0 @@ const [submitted, setSubmitted] = useState<boolean>(false) |
76456