How to conditionally render node view in React #4277
Unanswered
piszczu4
asked this question in
General Questions
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.
-
I have a
figurenode which consists of two nodesmedia(required) andcaption(optional). Here is the view:I want to add attribute
captionto this node and use to to either render or not thecaptonview. Currently<NodeViewContent></NodeViewContent>renders the views of bothfigureandcaption- can I somehow split it? Or what is the recommended way to implement this kind of things? Add a command which deletes and adds acaptionnode?Beta Was this translation helpful? Give feedback.
All reactions