Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{posts.map((post, key) =>
).toArray()}
)
}
})
PostList = connectToStores(PostList, [PostStore], stores => {
return {
posts: stores.PostStore.getPostList()
}
})
export default PostList
className='post-item-content'
dangerouslySetInnerHTML={{__html: post.get('body')}}
/>
)
}
})
PostItem = connectToStores(PostItem, [PostStore, RouteStore], (stores, props) => {
const { currentRoute } = props
const postName = currentRoute.getIn(['params', 'post'])
const post = stores.PostStore.getPostItem(postName)
return {
post
}
})
export default PostItem
);
return (
<div style="{styles.root}">
</div>
);
}
}
App = connectToStores(App, [MetaStore], function(stores, props) {
return {
MetaStore: stores.MetaStore.getState()
};
});
App = handleHistory(App);
App = provideContext(App);
export default App;