New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@mitojs/react

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mitojs/react

A SDK For Report React ErrorBoundary

Source
npmnpm
Version
2.1.25
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@mitojs/react

install

yarn

$ yarn add @mitojs/react

npm

$ npm install @mitojs/react

usage

import React from 'react'
import * as Mito from '@mitojs/react'

/**
 * the 'RootComponent' will report to Slardar after crash
 * the 'OtherComponent' will report to window.Slardar after crash
 */
const APP: React.FC = () => {
  return (
    <Provider Slardar={Slardar}>
      <RootComponent />
      // 多实例
      <Provider>
        <OtherComponent />
      </Provider>
    </Provider>
  )
}

Keywords

mitojs

FAQs

Package last updated on 13 Sep 2021

Related posts