React npm套件/插件整理
參考來源:
React plugins
官方推薦插件
immutability-helper
Immer
CSS Framework
Material UI
React Toolbox
Bulma is a free, open source framework that provides ready-to-use frontend components that you can easily combine to build responsive web interfaces.
說明:為 pure css 方案。非常輕量。足以做畫面 layout。尚不支援 InputField 輸入。
已通過試用。
Blueprint
Cookies
universal-cookie
Cypher 加密
Web Crypto API
The Web Crypto API is an interface allowing a script to use cryptographic primitives in order to build systems using cryptography.
Browser 內附的加解密模組。自已宣稱只有低階層度,應該是免責聲明吧。
Forge
A native implementation of TLS (and various other cryptographic tools) in JavaScript.
安裝套件名稱。
npm i node-forge
sjcl (Stanford Javascript Crypto Library)
備用的前端加密函式庫。到現在(2025/2/3)已六年未更新。留存備用。
crypto-js (已不再維護)
以 node.js 平台為基礎的加密模組。
注意:未來已不在維護。本來為優先選取的前端加密函式庫。因官已確認不再維護,故也不建議再使用。
@peculiar/webcrypto
無平台相依的加密模組。
Authz
next-auth
為 next.js 設計的登入認證模組。
File Upload
已試用可用。
Dropzone
file-selector
Drag & Drop
React DnD
依執行平台搭配 react-dnd-html5-backend
或 react-dnd-touch-backend
。
說明:UI操作可拖拉。
說明2:React Dnd 可能需要與 React-Dnd-Html5-Backend 協作。
React DnD TreeView
React-Draggable
說明:UI操作可拖拉。較為簡單版的。可與Material UI協作。
react-draggable-tree
React Beautiful DND
說明:UI操作可拖拉。可與Material UI協作。
註:已不再更新了,固只留參。
React Drag and Drop Files
說明:檔案拖拉。
react-dropzone
說明:檔案拖拉。
說明:檔案拖拉。
Camera / Crop
React WebCam
已通過評估未測試。
裁剪圖片與簡單圖片處理。
官網:https://fengyuanchen.github.io/cropperjs/
已通過評估未測試。
html to image
html2canvas
依然是最佳解 on 2022/6/13。
html-to-image
node-html-to-image
CSS Animation
React Transition Group
為 react 官方建議項目,前身是ReactTransitionGroup
與ReactCSSTransitionGroup
。
不過本身只處理過場動畫交易,動畫的本體要額外提供。
Exposes simple components useful for defining entering and exiting transitions. React Transition Group is not an animation library like React-Motion, it does not animate styles by itself. Instead it exposes transition stages, manages classes and group elements and manipulates the DOM in useful ways, making the implementation of actual visual transitions much easier.
ReactTransitionGroup
and ReactCSSTransitionGroup
have been moved to the react-transition-group
package that is maintained by the community.
Animate.css
安裝:
npm install animate.css --save
說明:為傳統的 CSS Library;提供常用的 CSS 過場動畫。
已試用,可應用。
Animate.css
可與 React Transition Group
搭配使用。 animate.css
提供動畫,react-transition-group
處理動畫過場交易。 範例
react-spring
已試用可用。適用合製作動場動畫。
React-Motion
已通過評估,未試用。這套也很強大成熟的樣子。
Tiling Window
react-mosaic
Diff
react-diff-viewer
似乎不再維護了,可惜。
主版react-diff-viewer
,然太久未更新不能在React.v17
安裝執行。on 2022/6/14。
為分支版,可在React.v17
安裝執行。on 2022/6/14。
jsdiff + diff2html
現階段首選。on 2022/6/14。
react-fast-compare
react-diff-view
Render Html
html-react-parser
react-html-renderer
Dev Tools / 開發工具
Assert
說明:非常好用的開發工具。
Storybook
React Styleguidist
Native App Like/Corss Platform (跨平台)
用 Progressive Web App (PWA)模式開發。或由下面模組協助。
Electron
NW.js
Diagram
REAFLOW is a modular diagram engine for building static or interactive editors. The library is feature-rich and modular allowing for displaying complex visualizations with total customizability.
A customizable React component for building node-based editors and interactive diagrams
an easy-to-customise functional diagramming library to build diagrams with ease.
Graphics
PixiJS
GoJS
Reagraph is a high-performance network graph visualization built in WebGL for React.
mxGraph
Three.js
Phaser
Virtualized lists
react-virtualized
react-window
React Sortable Tree
Last updated