Render React Component Next to ListItem Nodes
#4384
morteymike
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to render a React component adjacent to each
ListItemin the playground editor. How can I achieve this?I am thinking there are a couple options:
ListItemnode completely (not preferred)ListItemnodes in theeditorState. Then create a Plugin that can add a React Portal for each item.What's the easiest way to achieve this?
2 seems to be the easiest, but I am only able to find examples of createPortal used on a
selection, so I am struggling to find a good solution here.Any help here is much appreciated, and thank you all for the great work!
Beta Was this translation helpful? Give feedback.
All reactions