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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -