Adding React.js, Redux, revamping dashboard
This commit is contained in:
19
app/assets/javascripts/components/components/status.jsx
Normal file
19
app/assets/javascripts/components/components/status.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
|
||||
const Status = React.createClass({
|
||||
propTypes: {
|
||||
status: ImmutablePropTypes.map.isRequired
|
||||
},
|
||||
|
||||
render: function() {
|
||||
console.log(this.props.status.toJS());
|
||||
|
||||
return (
|
||||
<div style={{ height: '100px' }}>
|
||||
{this.props.status.getIn(['account', 'username'])}: {this.props.status.get('content')}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
export default Status;
|
||||
Reference in New Issue
Block a user