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
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
const Filho = (props) => ( | |
<div> | |
<b>Eu sou um componente stateless</b> | |
<span> mas eu controlo o state do meu pai!</span> | |
<input | |
type="text" | |
value={props.valorDoPapaizineo} |