1import React from 'react';
3export default class WithErrorBoundary extends React.Component {
4 static getDerivedStateFromError(error) {
10 this.state = { error: null };
14 if (this.state.error) {
15 return this.props.render(this.state.error);
18 return this.props.children;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list