New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

append-react-dom

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

append-react-dom

append react dom node to element.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

appendReactDOM

Append React DOM Node to an element.

Installation

npm install append-react-dom --save

Usage

<div class="list">
	<div class="item item-1">item 1</div>
</div>
import appendReactDOM from 'append-react-dom';
import ItemComponent from 'components/Item';

let el = document.querySelector('.list');

appendReactDOM(ItemComponent, el, {
	bar: 'bar',
	foo: 'foo'
});

Now the list become:

<div class="list">
	<div class="item item-1">item 1</div>
	<div data-reactroot class="item item-2">item 2</div>
</div>

Copyright © 2017 Towry Wang.

Keywords

react

FAQs

Package last updated on 19 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts