1.1.53 • Published 3 years ago

@infini-hooks/use-visible v1.1.53

Weekly downloads
-
License
Unlicense
Repository
-
Last release
3 years ago

Statements Branches Functions Lines

Infinisoft tools is a set of developer's design patterns, scripts, templates and tools to make our lives easier and go faster. Faster, close to the speed of light!

Getting Started

Simple visible/invisible react state hook pattern. I did wrote that code so many times, that I did wrote this one directly in binary! :)

Common use case
Show/Hide components

Install

Run of one these command to install.

npm i @infini-hooks/hook-visible

or

yarn add @infini-hooks/hook-visible

Examples

Toggle a button to show or hide a title.

import {useVisible} from "@infini-hooks/hook-visible"

const MyComponent = () => {
    const {isVisible, toggle} = isVisible();

    return <div>
        <h1 hidden={isVisible}>
        Visible
        </h1>

        <button onClick={toggle}>
            Toggle Visible
        </button>
    </div>
}

More details on www.infinisoft.dev

Paid Contribution

You want to contribute, We PAY for it! We are looking for collaborators to speed our eco system's development.

Powered 🚀 by Infinisoft Inc.

Wanna code the future? Come with us https://www.infinisoft.world

1.1.9

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.51

3 years ago

1.1.12

3 years ago

1.1.33

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.53

3 years ago

1.1.31

3 years ago

1.1.16

3 years ago

1.1.37

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.35

3 years ago

1.1.13

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.39

3 years ago

1.1.17

3 years ago

1.1.41

3 years ago

1.1.45

3 years ago

1.1.23

3 years ago

1.1.22

3 years ago

1.1.43

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.49

3 years ago

1.1.26

3 years ago

1.1.47

3 years ago

1.1.25

3 years ago

1.1.24

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago