Skip to content

Solution to the whole page catch caused by the exception of React sub component

Notifications You must be signed in to change notification settings

ThorinChen/ErrorCatch_React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ErrorCatch_React

Solution to the whole page crash caused by the exception of React sub component

doc

react-catchable

install

use npm

npm i react-catchable

use yarn

yarn add react-catchable

setup

import catchable from "react-catchable";
class XXXComponent extends React.Component{
    render(){
        return <div></div>
    }
}

export default catchable(XXXComponent);

Example

Demo source:click

About

Solution to the whole page catch caused by the exception of React sub component

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published