項(xiàng)目完整地址:https://github.com/zhangxintong/gallery-by-react
Demo:https://zhangxintong.github.io/gallery-by-react/
如有幫助幫忙點(diǎn)贊,謝謝
Demo:https://zhangxintong.github.io/gallery-by-react/
如有幫助幫忙點(diǎn)贊,謝謝
2017-04-17
版本更新,現(xiàn)在使用es6書(shū)寫(xiě)配置文件,啟動(dòng)項(xiàng)目用npm start,具體的命令全部被寫(xiě)在package.json中。
而webpack的基本設(shè)置都在cfg文件夾中,課程中的配置項(xiàng)主要在base.js和defaults.js中,希望可以幫到大家
而webpack的基本設(shè)置都在cfg文件夾中,課程中的配置項(xiàng)主要在base.js和defaults.js中,希望可以幫到大家
2017-04-08
現(xiàn)在新版執(zhí)行g(shù)runt serve無(wú)效,可以執(zhí)行npm run serve,然后會(huì)運(yùn)行出項(xiàng)目網(wǎng)址,復(fù)制粘貼下來(lái)在網(wǎng)站上查看即可
2017-04-08
getInitialState(){ return { isEditing: false } }報(bào)錯(cuò)的額解決方法是
constructor(props){
super(props);
this.state = { // define this.state in constructor
isEditing: false
}
}
constructor(props){
super(props);
this.state = { // define this.state in constructor
isEditing: false
}
}
2017-04-04
rearrange:function(centerIndex ) {} 報(bào)錯(cuò)的原因是es6創(chuàng)建extends React.Component 時(shí)
要去掉:function 也就是-->rearrange ( centerIndex ) {}
要去掉:function 也就是-->rearrange ( centerIndex ) {}
2017-04-04
最新回答 / 青青子衿_666
Enable postcss?選擇了yes,出現(xiàn)沖突,該怎么辦? Enable postcss? Yes?conflict cfg? Overwrite cfg? (ynaxH)?
2017-04-03
平時(shí)自己寫(xiě)代碼會(huì)寫(xiě)注釋?zhuān)话愫瘮?shù)外部表明函數(shù)做的事情和邏輯也會(huì)在函數(shù)內(nèi)部關(guān)鍵地方注釋。 但是css還很少會(huì)寫(xiě)注釋。感覺(jué)這門(mén)課不止學(xué)了react 還學(xué)了代碼規(guī)范 老師好樣的
2017-03-30
由于版本問(wèn)題,webpack-server的文件替換成了根目錄下的server.js??梢酝ㄟ^(guò)localhost:8000/server訪問(wèn)
同理可以在componets下的main.js中加入一個(gè)script,指向server.js就可以熱更新了
同理可以在componets下的main.js中加入一個(gè)script,指向server.js就可以熱更新了
2017-03-28