formations/developpement/intro_javascript/ressources/react-demo/components/props-example.js

14 lines
180 B
JavaScript
Raw Permalink Normal View History

import React from 'react'
class PropsExample extends React.Component {
render() {
return (
<span>{ this.props.text }</span>
)
}
}
export default PropsExample