You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using two components in the same line result in only the first one being added to the react tree.
This is kind of a deal-breaker for inline span elements e.g. for multiple Link components that are inside a sentence.
n1ru4l
changed the title
using two components in the same line results in only the first one being added to the react tree
using self-closing components in the same line results in only the first one being added to the react tree
Apr 19, 2020
n1ru4l
added a commit
to n1ru4l/dungeon-revealer
that referenced
this issue
Apr 19, 2020
CodeSandbox with reproduction:
https://codesandbox.io/s/epic-snow-6oz96?file=/src/App.js:417-482
Using two components in the same line result in only the first one being added to the react tree.
This is kind of a deal-breaker for inline
span
elements e.g. for multipleLink
components that are inside a sentence.With MDX this is possible (tested on https://mdxjs.com/playground).
I think it is related to self-closing tags. The following works as expected:
Using the
recognizeSelfClosing
option forhtmlparser
seems to resolve this issue (see 50bfaef).The text was updated successfully, but these errors were encountered: