reactjs - How to insert a `React` component after a child element? -
i trying create react
component , insert after child element. here markup.
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">other <b class="caret"></b> </a> </li>
i want insert react
component after <a>
tag, not child of <a>
tag. here want like.
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">other <b class="caret"></b> </a> <ul ... react component> </ul> </li>
here code adds component:
react.rendercomponent(new navbardropdown(), this.$el.find('what goes here').get(0));
i not want add div id
place into, how add react
component in location?
react needs render component onto something. place placeholder div
there.
Comments
Post a Comment