Skip to content

用 ReactJS 來監聽滑鼠移動的事件,當游標停止超過一秒鐘,寶貝球就會往游標飄移過去。

License

Notifications You must be signed in to change notification settings

ReactMaker/react_challenge_mouse_move_shadow

Repository files navigation

React Mouse Move

用 ReactJS 來監聽滑鼠移動的事件,當游標停止超過一秒鐘,寶貝球就會往游標飄移過去。

Imgur

特色

需求配置

  • node ^4.5.0
  • npm ^3.0.0

開始

先確定好安裝了 node 4.5 以上的版本,接著就可以輸入以下指令

$ git clone https://github.com/ReactMaker/simple_react_start_kit_2017
$ cd simple_react_start_kit_2017
$ npm install                   # Install project dependencies
$ npm start                     # Compile and launch

如果一切成功,就會看到以下畫面,並且瀏覽器會打開的範例頁面

Imgur

開發當中最常用到的是 npm start 指令,我們還有一些其他的指令要介紹給你知道

npm run <script> 說明
start 啟動網站在 8000 port
dist 編譯整個網站成品到 dist 資料夾下
lint 檢查所有的 js 檔案有沒有符合 coding style
lint:fix 檢查所有的 js 檔案有沒有符合 coding style ,如果是一些簡單的錯誤就會嘗試修復

About

用 ReactJS 來監聽滑鼠移動的事件,當游標停止超過一秒鐘,寶貝球就會往游標飄移過去。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published