How to add a react component into graph

180 views
Skip to first unread message

heng fan

unread,
Mar 21, 2022, 5:51:04 AM3/21/22
to JointJS
Hello:

I create a react application according to the [tutorial](https://resources.jointjs.com/tutorial/react-ts) and it renders a rectangle using the `graph.addCell(rect)`. 
I have a react component named 'LoginForm' which can be used as <LoginForm />. And now I want to add it into the graph. 
I know the 'tasks' demo (https://resources.jointjs.com/demos/tasks) but it's not a react component.

Is there any way to combine joint graph and react component?

Roman Bruckner

unread,
Mar 23, 2022, 10:10:01 AM3/23/22
to joi...@googlegroups.com
Hi,

Here's a few examples of how to combine JointJS with React (searching the internet).
Here's an example of Vue and JointJS (made by us). It can show you some ideas as well.

Best,
Roman

--

---
You received this message because you are subscribed to the Google Groups "JointJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jointjs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jointjs/0c423917-104b-4648-b2b9-ec77720c7edcn%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages