File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ export class App extends Component{
4949 < ReactPullLoad onRefresh = { this . refresh . bind ( this ) } onLoadMore = { this . loadMore . bind ( this ) } hasMore = { hasMore } >
5050 < ul className = "test-ul" >
5151 {
52- data . map ( str => {
53- return < li key = { str } > < img src = { str } alt = "" /> </ li >
52+ data . map ( ( str , index ) => {
53+ return < li key = { index } > < img src = { str } alt = "" /> </ li >
5454 } )
5555 }
5656 </ ul >
Original file line number Diff line number Diff line change 11{
2- "name" : " react_pullload " ,
2+ "name" : " react-pullload " ,
33 "version" : " 0.0.1" ,
4- "description" : " " ,
5- "main" : " index .js" ,
4+ "description" : " React compopnent pull down refresh and pull up load more " ,
5+ "main" : " ./lib/ReactPullLoad .js" ,
66 "scripts" : {
77 "start" : " webpack-dev-server --hot --config webpack.demo.dev.config.js" ,
88 "build" : " node_modules/babel-cli/bin/babel.js src --out-dir lib && cp src/*.less lib/" ,
9- "demos " : " webpack -p --optimize-dedupe --progress --config webpack.demo.dev.conf .js" ,
9+ "demo " : " webpack -p --optimize-dedupe --progress --config webpack.demo.config .js" ,
1010 "clean:demos" : " rm -rf ../github.io/tloader" ,
1111 "clean:lib" : " rm -rf lib/" ,
1212 "test" : " echo \" Error: no test specified\" && exit 1"
You can’t perform that action at this time.
0 commit comments