Skip to content

Commit c946210

Browse files
committed
修改
1 parent 800e907 commit c946210

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

demo/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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"

0 commit comments

Comments
 (0)