Skip to content

Commit

Permalink
fix: solve for potential unmounting issue when re-running rehydrate
Browse files Browse the repository at this point in the history
  • Loading branch information
simon360 committed Sep 30, 2018
1 parent b5d47bb commit a300033
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/demos/components/MarkupContainer/MarkupContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ class MarkupContainer extends React.Component {

return (
<div ref={this.mainRef}>
{markup.map((__html, i) => (
{markup.map((node, i) => (
<div
data-react-from-markup-container
dangerouslySetInnerHTML={{ __html }}
dangerouslySetInnerHTML={{
__html: `<div data-react-from-markup-container>${node}</div>`
}}
key={i}
/>
))}
Expand Down

0 comments on commit a300033

Please sign in to comment.