StateShot :floppy_disk: 具有结构共享的非侵略性历史状态管理。 只需将您的状态推入StateShot并undo / redo即可! 入门 通过NPM安装: npm i stateshot 基本用法: import { History } from 'stateshot' const state = { a : 1 , b : 2 } const history = new History ( ) history . pushSync ( state ) // the terser `history.push` API is async state . a = 2 // mutatio