@datns/render-xml
v0.4.2
Published
React component for displaying XML serialized and collapsable as dom element.
Downloads
1
Readme
@datns/renderXML
React component for displaying XML serialized and collapsable as dom element.
Usage
import RenderXML from '@datns/renderXML'
// If you're using Immutable.js: `npm i --save immutable`
import { Map } from 'immutable'
// Inside a React component:
const xmlString = '<References attribue="test"><Node>Foo</Node></References>'
<RenderXML data={xmlString} />
Available Properties
required:
- data: xml string
optional:
- collapseStringsAfterLength: number after which strings are supposed to be cut off
- theme: 'dark'
Setup
yarn
Build
yarn build
License
@datns/renderXML is MIT licensed.