npm

Need private packages and team management tools?Check out npm Orgs. »

@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] }
*/
 

Keywords

none

install

npm i @sharyn/client

Downloadsweekly downloads

48

version

4.0.1

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability