Closed kasbah closed 7 years ago
My test component:
var Test = React.createClass({ render: function () { return ( <Image url='/images/logo.png' /> ); } });
Using via npm and require I get:
require
TypeError: ({type:(function (e){ "use strict"; }), key:null, ref:null, _owner:null, _context:{}, _store:{validated:false, props:{src:"/images/logo.png", onLoad:(function (){}), onError:(function (){}), lazyOffset:0, placeholderSrc:"data:image/gif;base64,R0lGODlhEAAJAIAAAP///wAAACH5BAEAAAAALAAAAAAQAAkAAAIKhI+py+0Po5yUFQA7"}}}) is not extensible
Using via <script> directly from GitHub I get:
<script>
TypeError: srcSet is undefined
This project has been superseded by https://github.com/mbrevda/react-image. Please give it a try and see if your issues have been resolved!
My test component:
Using via npm and
require
I get:Using via
<script>
directly from GitHub I get: