From 1a69276c7a51523cb2ef709ec0fcd98822cb17d3 Mon Sep 17 00:00:00 2001 From: David Nahodyl Date: Mon, 10 Jun 2024 10:17:26 -0400 Subject: [PATCH] doc improvements - added more functions --- README.md | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index f7d63fc..8757bff 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ Nuxt Precognition is a "precognition" utility for sharing server-side validation * [Quick Setup](#quick-setup) * [Examples](#examples) * [Usage - Client-Side](#usage---client-side) - * [useForm](#the-useform-vue-composable) * [usePrecognitionForm](#the-useprecognitionform-vue-composable) + * [useForm](#the-useform-vue-composable) * [Usage - Server-Side](#usage---server-side) * [handlePrecognitionRequest](#the-handleprecognitionrequest-server-utility--middleware) * [getValidatedInput](#the-getvalidatedinput-utlity-function) @@ -54,23 +54,23 @@ The `usePrecogitionForm` composable is the core feature for setting up the preco The `useProecognitionForm` composable is automatically imported into your Nuxt app when you install the module, and can be used without needing to manually import it. -This composable is used to create your form object and with handle form submission and validation. It is stateful, and will provide you with the form states and errors for you to nicely display validation and submission state in your components. +This composable is used to create your form object and will manage form submission and validation. It is stateful, and will provide you with the form states and errors for you to nicely display validation and submission state in your components. Here is an example of using the `usePrecognitionForm` composable to create a form object, validate the data on change, and handle form submission and responses: ```vue