@react-hook/merged-ref

v1.0.2
A React hook for merging multiple refs into one ref
react react hook merged ref merge two refs combine refs multiple refs

build

npm run build:cjs && npm run build:es

build:cjs

babel src -d dist/cjs -x .js --ignore "**/*.test.js","**/test.js" --delete-dir-on-start

build:es

cross-env BABEL_ENV=es babel src -d dist/es -x .js --ignore "**/*.test.js","**/test.js" --delete-dir-on-start

format

prettier --write "**/*.{js,jsx,yml,md}"

lint

eslint src

prepublishOnly

npm run lint && npm run test && npm run build && npm run format

test

jest

validate

npm run lint && npm run test -- --coverage
npm i @react-hook/[email protected]

Metadata

  • MIT
  • Whatever
  • Jared Lunde
  • released 9/18/2019

Downloads

Maintainers