@netless/fastboard-react 0.2.12 → 0.2.13-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/vanilla/index.tsx +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2102,12 +2102,12 @@ var ReplayFastboard = /* @__PURE__ */ forwardRef4(function ReplayFastboard2(_a,
|
|
|
2102
2102
|
// src/vanilla/index.tsx
|
|
2103
2103
|
import React52 from "react";
|
|
2104
2104
|
import ReactDOM from "react-dom";
|
|
2105
|
-
function mount(app, dom, props) {
|
|
2105
|
+
function mount(app, dom, props = {}) {
|
|
2106
2106
|
ReactDOM.render(/* @__PURE__ */ React52.createElement(Fastboard, __spreadValues({
|
|
2107
2107
|
app
|
|
2108
2108
|
}, props)), dom);
|
|
2109
2109
|
return {
|
|
2110
|
-
update(props2) {
|
|
2110
|
+
update(props2 = {}) {
|
|
2111
2111
|
ReactDOM.render(/* @__PURE__ */ React52.createElement(Fastboard, __spreadValues({
|
|
2112
2112
|
app
|
|
2113
2113
|
}, props2)), dom);
|