0.4.2 • Published 7 years ago

@datns/render-xml v0.4.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

@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.