brew install gnupg pinentry-mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ErrorBoundary> | |
<MyComponent /> | |
</ErrorBoundary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from 'react'; | |
const ErrorComponent = () => { | |
return <h1>Something went wrong</h1>; | |
}; | |
export class AppError extends Component { | |
state = { | |
hasError: false, | |
}; |
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:
In your command-line run the following commands:
brew doctor
brew update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
NewerOlder