var Camera = require('react-feather/dist/icons/camera');
However, the published dist/.../camera.js file exports like this:
exports.default = Camera;
Thus, it seems like the README should read:
If you can't use ES6 imports, it's possible to include icons from the compiled folder ./dist.
var Camera = require('react-feather/dist/icons/camera').default;
var MyComponent = React.createClass({
render: function () {
return (
<Camera />
);
}
});
From what I can tell, the README suggests the following approach to import the
Camera
component in the absence of ES6 imports:However, the published
dist/.../camera.js
file exports like this:Thus, it seems like the README should read:
Or, perhaps, I am just missing something...