In edit documentation I found a way to import PureRenderMixin
var PureRenderMixin = require('react/addons').addons.PureRenderMixin;
How can I rewrite it in ES6 style. The only thing I can do is:
import addons from "react/addons"; let PureRenderMixin = addons.addons.PureRenderMixin;
I hope there is a better way.
javascript ecmascript-6 module commonjs browserify
Glen swift
source share