@sharyn/client

4.0.1 • Public • Published

🌹 @sharyn/client

npm

This package provides client-side helpers.

🌹 Install

yarn add @sharyn/client

🌹 Usage

getFormData

import { getFormData } from '@sharyn/client/form'

const handleSubmit = e => {
  console.log(getFormData(e.target))
}

const Form = () => (
  <form onSubmit={handleSubmit}>
    <input name="foo" />
    <input type="submit" />
  </form>
)

/*
onSubmit:
  { foo: [value] }
*/

Readme

Keywords

none

Package Sidebar

Install

npm i @sharyn/client

Weekly Downloads

14

Version

4.0.1

License

MIT

Unpacked Size

3.87 kB

Total Files

6

Last publish

Collaborators

  • sharyn