79
rated 0 times
[
80]
[
1]
/ answers: 1 / hits: 32337
/ 9 Years ago, fri, may 8, 2015, 12:00:00
In the react documentation I found this way to import PureRenderMixin
var PureRenderMixin = require('react/addons').addons.PureRenderMixin;
How can it be rewritten 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.
More From » module