This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| from Dave Gray | |
| https://www.youtube.com/watch?v=MHm-2YmWEek&ab_channel=DaveGray | |
| Usage: | |
| const debouncedSearchValue = useDebounce(searchValue, 1000) | |
| */ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ShadCN + RHF + Zod examples from tomphill | |
| by Tom Phillips | |
| https://github.com/tomphill/shadcn-form-tut/blob/main/app/page.tsx | |
| */ | |
| "use client"; | |
| import * as z from "zod"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 2024-04-25 00:13:11 | |
| React-Hook-Form + Zod + Resolver | |
| */ | |
| "use client"; | |
| import { InputGroup } from "@/app/util/InputGroup"; | |
| import { LogInSchemaType, logInSchema } from "@/app/zodSchemas/logInSchema"; | |
| import { zodResolver } from "@hookform/resolvers/zod"; | |
| import React, { useState } from "react"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 2024-04-27 04:11:52 | |
| useReducer & useContext utility functions. | |
| Todos: | |
| 1. initState | |
| 2. Reducer.Action_Types | |
| 3. Reducer function | |
| 4. useReducer Custom hook function | |
| 5. initContextState |