Skip to content

Instantly share code, notes, and snippets.

View new.js
export const selectSubreddit = createAction(SELECT_SUBREDDIT);
export const invalidateSubreddit = createAction(INVALIDATE_SUBREDDIT, function (subreddit) {
return { subreddit };
});
export const requestPosts = createAction(REQUEST_POSTS, function (subreddit) {
return { subreddit: subreddit };
});
View express.js
app.get(routes.employer.main, wrapWithCatch(handlers.getEmployers));
try {
doSomething()
} catch (e) {
console.log(e)
}
View initialState.js
const initialState = {
friends: [
{
id: 1,
name: 'Some Guy',
starred: false
}, {
id: 2,
name: 'Barack Obama',
starred: false