ducky/web

Paddy 2015-07-07 Parent:99a43a6d1d30

21:bc1478742a50 Go to Latest

ducky/web/src/pages/message.jsx

Implement subscriptions. Create a Subscription model and a Subscriptions collection, and attach them to the app context. Add a helper to our Profile model to retrieve the Subscription of that model. Still not sure this should be on the Profile--wouldn't it be better on the Me model? Isn't that generally where we would need it?

History
1 import React from 'react'
3 export default React.createClass({
4 displayName: 'ErrorPage',
6 propTypes: {
7 title: React.PropTypes.string,
8 message: React.PropTypes.string.isRequired
9 },
11 render () {
12 const {title, message} = this.props
13 return (
14 <div>
15 <h1>{title}</h1>
16 <p>{message}</p>
17 </div>
18 )
19 }
20 })