Open in app

Sign In

Write

Sign In

KY
KY

10 Followers

Home

About

4 days ago

[npm]dependencies 與devDependencies 的區別

有兩種指令,可以寫進 package.json — save-dev 寫入到devDependencies — save 寫入 dependencies 實際上的差別 dev-Dependencies only開發依靠而已 裡面的插件 「只」用於開發環境(web pack…) dependencies 是需要發佈到生產環境,沒有這包依賴運行就會報錯,

Dependencies

1 min read

Dependencies

1 min read


Mar 2

NPM 打包開源元件

NPM install 自己的模組 可以 import 自己做的模組 前言 Node.js 上開發專案好處就是可以透過 NPM 找到大量好用的套件。 但有時候你可能會發現有一些套件不符合你的需求,或是在程式運作上有錯誤。或許可以到討論版下方留言,苦苦等待作者回應,不過也可以在條件許可授權下,自行取得別人的程式碼,並以 _私領域套件(scoped package)_的形式發佈到 npm 註冊處。 接續第二篇

Npm Package

1 min read

Npm Package

1 min read


Mar 2

NPM-公領域-公開存取套件

重要單字註釋 1. scoped 範圍 2. unUnscoped不侷限範圍 不拘限範圍的公開 pacjage Unscoped public package 創建並公布一項不侷限範圍的公開 package Create and publishing Unscoped public package 這種是最長的普通套件,任何人都可以取用。 公領域套件名稱通常只有英文、數字與橫線所組成,例如「text-npm-module」。 As an npm user, you can create unscoped packages to use in your own projects and publish them to the npm public registry for others to use in theirs. …

Npm Package

2 min read

Npm Package

2 min read


Feb 22

React Route

製作 Nav

1 min read

React Route
React Route

1 min read


Jan 7

React Hook — useMemo

Youtube link I just have some really basic boilerplate code set up for us to test our application Two pieces of state one is a number which we can control by this over here on the right and the second one is a boolean for dark or light which is…

8 min read

React Hook — useMemo
React Hook — useMemo

8 min read


Dec 26, 2022

React / usePagination / Table

How to implement the usePagination Hook Below are the few things we need to keep in mind while implementing the usePagination hook: Our pagination hook must return the range of numbers to be display in our pagination component as an array. The computation logic needs to re-run when either currentPage, pageSize, siblingCount, or totalCount change. The…

React

2 min read

React / Pagination / Table
React / Pagination / Table
React

2 min read


Dec 23, 2022

React JS+Material UI中的服務器端分頁

分頁可以分為,後端形式、前端形式。 服務器端分頁:涉及向服務器發出請求以獲取與請求的查詢參數(例如頁面大小 和 頁面索引) 匹配的數據子集。 與客戶端分頁不同,我們一次獲取所有數據定在前端處理分頁。 本文介紹了應該使用「服務器端分頁」的「原因」以及如何在 「React JS 和 Material UI」中實現它。目錄 先決條件 用例 服務器端分頁的好 …

Pagination

11 min read

React JS+Material UI中的服務器端分頁
React JS+Material UI中的服務器端分頁
Pagination

11 min read


Dec 16, 2022

MUSIC for coding

適合寫程式聽的音樂 重溫最愛,聽了很多次。

Music

1 min read

MUSIC for coding
MUSIC for coding
Music

1 min read


Dec 16, 2022

VScode 工具紀錄_Tailwind Shades

由主色,延伸出深淺多種顏色 顏色常見狀況,由一個主色 延伸出 稍微深/或/稍微淺,的多種顏色 cmd + K cmd + G

React

1 min read

VScode 好用插件_
VScode 好用插件_
React

1 min read


Dec 14, 2022

React Forms

Main link Main link Controlled Components Try it on CodePen The select Tag Try it on CodePen Handling Multiple Inputs Try it on CodePen Forms HTML form elements work a bot differently from other DOM elements in React, because form elements naturally keep some internal status. For example, this in plain HTML accepts a single name: /** 表格內 有 Label Label 內有 input input…

React Forms

5 min read

React Forms

5 min read

KY

KY

10 Followers

前端 / UiUx / 自學

Following
  • Hannah Lin

    Hannah Lin

  • Cheng-Wei Hu | 胡程維

    Cheng-Wei Hu | 胡程維

  • Whien

    Whien

  • Molly M

    Molly M

  • 圓圓小熊(Maruマル)

    圓圓小熊(Maruマル)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech