snippet-hook
Version:
A simple and reusable custom hook for managing form state in React. The useForm hook allows you to easily manage form data, handle input changes, and reset the form state.
14 lines (12 loc) • 334 B
JavaScript
import { defineConfig } from "rollup";
import typescript from "@rollup/plugin-typescript";
export default defineConfig({
input: "src/index.ts",
output: {
dir: "dist",
format: "es",
name: "snippet-hook",
},
external: ["react", "react-dom"],
plugins: [typescript({ tsconfig: "tsconfig.json" })],
});