mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
18 lines
308 B
JavaScript
18 lines
308 B
JavaScript
import React from 'react';
|
|
|
|
/**
|
|
* This is the component that implements display-specific functionality
|
|
*/
|
|
let Piece = React.createClass({
|
|
propTypes: {
|
|
title: React.PropTypes.string.isRequired
|
|
},
|
|
|
|
render() {
|
|
return (
|
|
<p>Title: {this.props.title}</p>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default Piece; |