1.1.53 • Published 4 years ago

@infini-hooks/use-visible v1.1.53

Weekly downloads
-
License
Unlicense
Repository
-
Last release
4 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

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.51

4 years ago

1.1.12

4 years ago

1.1.33

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.53

4 years ago

1.1.31

4 years ago

1.1.16

4 years ago

1.1.37

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.35

4 years ago

1.1.13

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.39

4 years ago

1.1.17

4 years ago

1.1.41

4 years ago

1.1.45

4 years ago

1.1.23

4 years ago

1.1.22

4 years ago

1.1.43

4 years ago

1.1.21

4 years ago

1.1.20

4 years ago

1.1.49

4 years ago

1.1.26

4 years ago

1.1.47

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago