We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e91b1f commit 22dd1e4Copy full SHA for 22dd1e4
1 file changed
README.md
@@ -72,6 +72,18 @@ export class MyNode extends Node {
72
}
73
74
editor.use(ReactRenderPlugin, {
75
- component: MyNode
+ component: MyNode // common custom React component
76
77
-```
+```
78
+
79
+Component specific custom node:
80
+```js
81
+class AddComponent extends Rete.Component {
82
+ constructor() {
83
+ super("Add");
84
+ this.data.component = MyNode;
85
+ }
86
+ ...
87
88
89
+[Example](https://codesandbox.io/s/retejs-react-render-t899c)
0 commit comments