react-formrun
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-slim-use-form

Easy to use formrun with React Hooks.

How to install

npm install react-formrun or yarn add react-formrun

How to use

import React from "react";
import { useFormrun } from "../src";

type Props = {
  data?: [];
};

export const Example: React.FC<Props> = ({ data }) => {
  const { initFormrun, getFormrun } = useFormrun(
    { className: ".formrun-embed", type: "embed" },
    [data]
  );
  useFormrun({ className: ".formrun", type: "default" });

  initFormrun()
  const formrun = getFormrun()
  formrun?._formViews

  return (
    <div
      className="formrun-embed"
      data-formrun-form={`@hoge`}
      data-formrun-redirect="true"
    />
  );
};

/react-formrun/

    Package Sidebar

    Install

    npm i react-formrun

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    8.45 kB

    Total Files

    10

    Last publish

    Collaborators

    • toshi1127