0.1.6 • Published 2 years ago

@andrewizbatista/use-render v0.1.6

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

useRender

A simple React hook that allows you to force a re-render of a Component with ZERO dependencies.

Created by♥ @andrewizbatista

Table of Contents

Getting Started

Prerequisites

This package has peerDependencies that are required for you to include in your app's dependencies:

{
  "dependencies": {
    "react": "^17.0.2"
  }
}

Installing

yarn

yarn add @andrewizbatista/use-render

npm

npm install @andrewizbatista/use-render

Usage

Use it as you would use any other React hook.

import { useRender } from '@andrewizbatista/use-render';

function Usage() {
  const { forceRender } = useRender();

  return <Button onClick={forceRender}>Click to Re-Render the Component</Button>;
}

Contributing

Want to help? Feel free to open an Issue or create a Pull Request and let's get started 🚀

License

MIT © André Batista (@andrewizbatista) 🎉

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago