react-error-logger-localstorage
v1.0.2
Published
Error Logging using Error Boundary and Local Storage
Downloads
9
Maintainers
Readme
react-error-logger-localstorage
Installation
npm install react-error-logger-localstorage
Usage
It simply uses Error Boundaries to log errors to your local storage as well as localhost web page
Basic Example
import React, { Component } from "react";
import logo from "./logo.svg";
import "./App.css";
import Child from "./Child";
import ErrorLogger from "react-error-logger-localstorage";
class App extends Component {
render() {
return (
<div className="App">
<ErrorLogger>
<Child />
</ErrorLogger>
</div>
);
}
}
export default App;
Here Child is any Child Component