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

feat(react): support react component react-layout #103

Merged
merged 7 commits into from
Feb 13, 2018

Conversation

daybrush
Copy link
Member

@daybrush daybrush commented Feb 5, 2018

Issue

#101

Details

@coveralls
Copy link

coveralls commented Feb 5, 2018

Coverage Status

Coverage remained the same at 81.717% when pulling a84059e on younkue:master into 297defc on naver:master.

}
updateChildren(children = this.props.children) {
let randomGroupKey = 0;
const itemChildren = (Array.isArray(children) ? children : [children])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using 'React.Children.map' ?

@@ -0,0 +1,9 @@
import Layout from "../Layout";
import * as InfiniteGrid from "@egjs/infinitegrid";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about changing this code?

import Layout from "../Layout";
import InfiniteGrid, {GridLayout as GL} from "@egjs/infinitegrid";
import React from "react";

export default class GridLayout extends React.Component {
    render() {
        return <Layout {...this.props} type={GL}>{this.props.children}</Layout>
    }
} 

@daybrush daybrush changed the title fea(react): support react component react-layout feat(react): support react component react-layout Feb 13, 2018
@sculove sculove merged commit 063714b into naver:master Feb 13, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants