Skip to content

Instantly share code, notes, and snippets.

@luizchaves97
luizchaves97 / MyComponentFix.jsx
Last active February 15, 2021 19:44
1 ano trabalhando com React
const MyComponent = () => {
const [photos, setPhotos] = useState([{url: 'initial.png', alt: 'Initial Photo'}]);
useEffect(() => {
const getPhotos = async () => {
return api.get('/photos');
}
const response = await getPhotos();
Terminal:
- Zsh (Oh My Zsh): https://blog.rocketseat.com.br/terminal-com-oh-my-zsh-spaceship-dracula-e-mais/
- Syntax Highlighting: https://github.com/zsh-users/zsh-syntax-highlighting
- Auto Suggestions: https://github.com/zsh-users/zsh-autosuggestions
.zshrc
SPACESHIP_PROMPT_ORDER=(
user # Username section