I hereby claim:
- I am vitorbritto on github.
- I am vitorbritto (https://keybase.io/vitorbritto) on keybase.
- I have a public key ASAlgVIS18Rhy8It_4saeW-NLIB-VYoiFZeTPYSjz6M9qQo
To claim this, I am signing this object:
<ErrorBoundary> | |
<MyComponent /> | |
</ErrorBoundary> |
class ErrorBoundary extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { hasError: false }; | |
} | |
static getDerivedStateFromError(error) { | |
// Update state so the next render will show the fallback UI. | |
return { hasError: true }; |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import * as serviceWorker from './serviceWorker'; | |
import { AppError } from './components/AppError'; | |
ReactDOM.render( | |
<React.StrictMode> | |
<AppError> |
import { Component } from 'react'; | |
const ErrorComponent = () => { | |
return <h1>Something went wrong</h1>; | |
}; | |
export class AppError extends Component { | |
state = { | |
hasError: false, | |
}; |
I hereby claim:
To claim this, I am signing this object:
In your command-line run the following commands:
brew doctor
brew update
{ | |
"explorer.confirmDelete": false, | |
"window.zoomLevel": -2, | |
"guides.enabled": false, | |
"explorer.confirmDragAndDrop": false, | |
"[json]": { | |
"editor.defaultFormatter": "HookyQR.beautify" | |
}, | |
"[html]": { | |
"editor.defaultFormatter": "HookyQR.beautify" |
Getting started:
Related tutorials:
# MAKEFILE | |
# | |
# Autor: Vitor Britto | |
# Versão: 0.1.0 | |
# | |
# | |
# Descrição: | |
# Arquivo para gerar um estrutura inicial para | |
# novos projetos e realizar tarefas de automação | |
# |