createAbsoluteGrid is not a function
Opened this issue · 0 comments
saravanannnallasamy commented
React@16.8.2
React-absolute-grid@3.0.1
migrated from 2.0.1 to 3.0.1
var createAbsoluteGrid = require('react-absolute-grid');
var Createvisit= createReactClass({
getInitialState: function(){
return {
result:[],
};
},
componentWillMount: function() {
const AbsoluteGrid = createAbsoluteGrid(SampleDisplay);
},
render: function() {
return (
<AbsoluteGrid items={this.state.result}/>
)
}
});
module.exports = Createvisit;
var SampleDisplay = createReactClass({
render: function() {
const { item, index, itemsLength } = this.props;
..........
..........
return (
<div style={itemStyle} className="gridItem" id={id} onClick={this.click}>
<span className="name" id={id}>
{itemname}</span>
</div>
);
}
});`