Skip to content

Instantly share code, notes, and snippets.

@samuelayo
Created January 29, 2018 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelayo/c5066ded8653591376c04ab568db3e92 to your computer and use it in GitHub Desktop.
Save samuelayo/c5066ded8653591376c04ab568db3e92 to your computer and use it in GitHub Desktop.
render() {
return (
<div
className="App"
ref="myscroll"
style={{ height: "420px", overflow: "auto" }}
>
<header className="App-header">
<h1 className="App-title">Welcome to React</h1>
</header>
<ul>
{this.showItems()}
</ul>
{this.state.loading
? <p className="App-intro">
loading ...
</p>
: ""}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment