2017年3月15日 星期三

克服JS的奇怪部分

http://disp.cc/b/KnucklesNote?ft=克服JS的奇怪部分

React

React教學文獻
https://github.com/shiningjason1989/react-quick-tutorial
https://github.com/onlinereadbook/bookreactjs
React 小書(從原生JS講解React) https://github.com/huzidaha/react-naive-bookhttps://www.youtube.com/watch?v=mbMomTT070M

開發環境
https://github.com/horsekitlin/isomorphic-express-demo

React + Redux Workshop, Andy Tsai
https://hackmd.io/p/r1MHEMW4l#/

React-three
https://github.com/Izzimach/react-three
Demo:
https://github.com/poshaughnessy/react-three-demo
http://react-three-demo.herokuapp.com/

React-three-renderer
https://github.com/toxicFork/react-three-renderer

教你如何搭建一个超完美的服务端渲染开发环境
http://www.jianshu.com/p/0ecd727107bb

Ant Design

React-md
https://react-md.mlaursen.com/

Material-ui
http://www.material-ui.com/

ES7
npm install --save-dev babel-preset-stage-0

套件
react-copy-to-clipboard 複製文字
https://github.com/nkbt/react-copy-to-clipboard

Hook 寫法 (VP提供)
const defaultState = {
code: null,
data: null,
total: null,
};
const Regions = ({ ...props }) => {
const [{ code, data }, setState] = useState(defaultState);
useEffect(() => {
let canceled = false;
setState(defaultState);
(async () => {
const {
data: { code, total, data },
} = await listApi();
if (canceled) return;
setState({ code, data, total });
})();
return () => (canceled = true);
}, []);
view raw hook.js hosted with ❤ by GitHub


React Hooks Doc
https://reactjs.org/docs/hooks-intro.html

A Complete Guide to useEffect
https://overreacted.io/a-complete-guide-to-useeffect/

(OS 64)指定的網路名稱無法使用。 : AH00341: winnt_accept: Asynchronous AcceptEx failed.

FYI:
http://orzit.blogspot.tw/2016/12/Resolve-apache24-winnt-accept-Asynchronous-AcceptEx-failed.html

(OS 64)指定的網路名稱無法使用。 : AH00341: winnt_accept: Asynchronous AcceptEx failed.

AcceptFilter http none
AcceptFilter https none
EnableMMAP off
EnableSendfile off