šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

simple-boot-react

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-boot-react

react hook, util, http library

0.0.8
latest
Source
npm
Version published
Maintainers
1
Created
Source

simple-boot-react

typescript npm

Our primary goals are

  • Provides react hooks, state, utils, and more.

Installation

npm install --save simple-boot-react

hooks

usePromiseState()

manage the state of the promise.

Usage

function Component() {
  const data = usePromiseState({
    factory: () => Promise.resolve('hello')
  })
  return (<div>
    <div>{data.state}</div>
    <div>{data.isError}</div>
    <div>{data.isLoading}</div>
    <div>{data.isSuccess && data.data}</div>
  </div>)
}

useDependencyCallBackCleanUp()

useDependencyCallBackCleanUp

Usage

function Component() {
  return <div></div>
}

useNotFalsy()

useNotFalsy

Usage

function Component() {
  return <div></div>
}

useNotNullish()

useNotNullish

Usage

function Component() {
  return <div></div>
}

useObservable()

useObservable

Usage

function Component() {
  return <div></div>
}

useObservableUnsubscribe()

useObservableUnsubscribe

Usage

function Component() {
  useObservableUnsubscribe(() => {
    return subject.pipe(debounceTime(500), distinctUntilChanged()).subscribe(it => {
     // ... 
    })
  })
  return <div></div>
}

usePromise()

usePromise

Usage

function Component() {
  return <div></div>
}

usePromiseCleanUp()

usePromiseCleanUp

Usage

function Component() {
  return <div></div>
}

usePromiseLazy()

usePromiseLazy

Usage

function Component() {
  return <div></div>
}

usePromiseNotNullish()

usePromiseNotNullish

Usage

function Component() {
  return <div></div>
}

useWindow()

useWindow

Usage

function Component() {
  return <div></div>
}

Keywords

module

FAQs

Package last updated on 15 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts