MCPcopy Index your code
hub / github.com/Broltes/react-touch-loader / render

Method render

example/app.jsx:67–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 render() {
68 const {
69 listLen, hasMore, initializing, refreshedAt, canRefreshResolve,
70 } = this.state;
71 const list = [];
72
73 if (listLen) {
74 for (let i = 0; i < listLen; i++) {
75 list.push((
76 <li key={i}>
77 <p>{i}</p>
78 </li>
79 ));
80 }
81 }
82 return (
83 <div className="view">
84 <h1>react-touch-loader {refreshedAt.toString().substr(7)}</h1>
85
86 <Tloader
87 className="main"
88 onRefresh={this.refresh}
89 onLoadMore={this.loadMore}
90 hasMore={hasMore}
91 initializing={initializing}
92 >
93 <ul>{list}</ul>
94 </Tloader>
95
96 <div className="footer">
97 <a href="https://github.com/Broltes/react-touch-loader">view source</a>
98 <label>
99 can refresh resolve
100 <input
101 type="checkbox"
102 checked={canRefreshResolve}
103 onChange={this.toggleCanRefresh}
104 />
105 </label>
106 </div>
107 </div>
108 );
109 }
110}
111
112export default hot(module)(App);

Callers 1

index.jsxFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected