-
-
Save NataliaAvila/bf69d6b281584ea570024fecabcf890a to your computer and use it in GitHub Desktop.
Anotações sobre [REACT]
This file contains 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
1. Chamar imagem no .jsx: | |
import foto6 from '../images/foto6.jpg' | |
<img src={foto6} className="img-fluid" /> | |
2. Importar componente em pagina: | |
import React, { Component } from 'react' | |
import Content from '../content/content' | |
export default class Home extends Component{ | |
render(){ | |
return( | |
<div> | |
<Content /> | |
</div> | |
) | |
} | |
} | |
3. Rodar BUILD no projeto | |
npm run build | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Testar requisição no Postman
http://localhost:3003/api/todos?sort=createdAt&description_regex=/curso/