Created
May 10, 2018 18:05
-
-
Save DiegoPinho/7db2b9b7a53351a0943dedc2c90d6f1d to your computer and use it in GitHub Desktop.
Exemplo de componente com propriedades - UNIVEM
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
const App = () => { | |
return ( | |
<Pessoa nome = "Diego Martins de Pinho" /> | |
) | |
} | |
const Pessoa = (props) => { | |
return ( | |
<p><b>Nome: </b>{props.nome}</p> | |
) | |
} | |
ReactDOM.render(<App />, document.getElementById('app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment