Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createAbsoluteGrid is not a function #54

Open
saravanannnallasamy opened this issue Apr 2, 2019 · 0 comments
Open

createAbsoluteGrid is not a function #54

saravanannnallasamy opened this issue Apr 2, 2019 · 0 comments

Comments

@saravanannnallasamy
Copy link

[email protected]
[email protected]

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>
    );
  }
});`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant