javascript - Import JSX in Reflux Store not working -
i have module trying import reflux store.
/* ../util/itemutil.jsx */ var itemutil = { isitemowner(user, item) { return (user.id === item.user.id) } } export default itemutil;
but when trying import reflux store
import itemutil 'util/itemutil' var itemstore = reflux.createstore({ check(user, item) { itemutil.isitemowner(user,item) /* above statement fails undefined */ } })
Comments
Post a Comment