useRender

A React Hook that return a function to re-render component. Helpful when you need to re-render a component without changing the state.

Demo

Source
Count:
0

Usage

See API for more details.

Source

Click links below to view source on GitHub.

API

const render = useRender()

Returns

A function that re-renders the component.