Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mottox2/react2xml

Generate XML from React.Element
https://github.com/mottox2/react2xml

Last synced: 18 days ago
JSON representation

Generate XML from React.Element

Awesome Lists containing this project

README

        

# react2xml
Generate XML from React.Element

## Usage

Install react2xml using yarn or npm.

```sh
$ yarn add react2xml
```

Use in your project.

```js
import React from 'react'
import react2xml from 'react2xml'

const element = React.createElement('a:b', {c: 'aaa'},
React.createElement('b:c', {d: 'ddd'})
)
const result = react2xml(element)

console.log(result)
// =>
```

## Author

* [github/mottox2](https://github.com/mottox2)
* [twitter/mottox2](https://twitter.com/mottox2)

## License

Licensed under the [MIT License](blob/master/LICENSE).