context = window NotificationActions = @NotificationActions @SessionNotifications = React.createClass({ mixins: [Reflux.listenTo(@SessionNotificationStore,"onNotificationsChanged"), Reflux.listenTo(@AppStore,"onAppInit")] onNotificationsChanged: (notifications) -> @setState({notifications: notifications}) getInitialState: () -> {notifications: []} clearNotifications: (e) -> e.preventDefault() NotificationActions.clear() render: () -> notifications = [] for notification in @state.notifications notifications.push(``) `

notifications

Clear Notifications
{notifications}
` onAppInit: (app) -> @app = app })