Last active
January 26, 2021 01:45
-
-
Save douglasabnovato/b91013f3710beda31cc746d6aa121038 to your computer and use it in GitHub Desktop.
Como tudo no react são componentes, em qualquer outra classe do nosso projeto podemos importar nosso componente e exibí-lo dentro do método render em forma de tag
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 Post from ‘Post’; | |
| class Lista extends React.Component { | |
| render(){ | |
| return ( | |
| <Post/> | |
| <Post/> | |
| <Post/> | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment