как будет выглядеть импорт модуля на ES6?
var React = require('react/addons');
var cx = React.addons.classSet;
var PureRenderMixin = require('react').addons.PureRenderMixin;
var Fluxxor = require('fluxxor');
var FluxMixin = Fluxxor.FluxMixin(React);
var StoreWatchMixin = Fluxxor.StoreWatchMixin;
var Router = require('react-router');
var State = Router.State;
var Navigation = Router.Navigation;
подозреваю, что некоторые будут так:
import React from 'react/addons'
// cx ???
// PureRenderMixin ???
import Fluxxor, {StoreWatchMixin} from 'fluxxor'
// FluxMixin ???
import Router, {State, Navigation} from 'react-router'
интересуют конкретно импорты, без var\let. хотя с ними будет вот так:
import React from 'react/addons'
let cx = React.addons.classSet
let PureRenderMixin = React.addons.PureRenderMixin
import Fluxxor, {StoreWatchMixin} from 'fluxxor'
let FluxMixin = Fluxxor.FluxMixin(React)
import Router, {State, Navigation} from 'react-router'