Last active
July 15, 2019 11:44
-
-
Save daybrush/ed5a4bffd159bfe90c373d87e74631ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ChildrenDiffer, { ChildrenDiffResult } from "@egjs/react-children-differ"; | |
class Flicking { | |
public render() { | |
return ( | |
<ChildrenDiffer onUpdate={this.onUpdate}> | |
{this.renderPanels()} | |
</ChildrenDiffer> | |
); | |
} | |
public onUpdate = (result: ChildrenDiffResult<HTMLElement>) => { | |
this.flicking.sync(result); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment