1.1.53 • Published 1 year ago

@infini-hooks/use-visible v1.1.53

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

1 year ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.51

1 year ago

1.1.12

1 year ago

1.1.33

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.53

1 year ago

1.1.31

1 year ago

1.1.16

1 year ago

1.1.37

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.35

1 year ago

1.1.13

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.39

1 year ago

1.1.17

1 year ago

1.1.41

1 year ago

1.1.45

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.43

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.49

1 year ago

1.1.26

1 year ago

1.1.47

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago