0.0.2 • Published 4 years ago

set-param v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

set-param

set-param is a library to set parameters.

NPM JavaScript Style Guide

Demo

https://tagty.github.io/set-param

Install

npm install --save set-param

Usage

import React from 'react'

import { setParam } from 'set-param'

export default () => {
  React.useEffect(() => {
    setParam({ bar: 'aaa' })
  }, [])

  return (
    <div>
      <h1>set-param</h1>
      <p>bar is aaa.</p>
      <button onClick={() => setParam({ buz: 'bbb' })}>set bbb on buz</button>
    </div>
  )
}

License

MIT © tagty