UNPKG

reactatouille

Version:

Reactatouille is a command-line tool to help quickly start and build a new React project, using Redux, Webpack, Gulp (You can add your own tasks, yo!), HMR/Hot Module Reload, Sass (architecture best practices), Jest, Enzyme, popmotion, Redux devtools (bro

17 lines (14 loc) 384 B
export const styleObjectParser = (str) => { var obj = {} str.split(';').forEach(function (str) { var arr = str.split(':') obj[arr[0]] = arr[1] }) return obj } export const isBrowser = () => { return typeof window !== 'undefined' && ({}).toString.call(window) === '[object Window]' } export const loadImage = (filename) => { return '/assets/images/' + filename }