Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mottox2/react2xml
- Owner: mottox2
- License: mit
- Created: 2019-11-26T14:47:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T02:27:23.000Z (almost 2 years ago)
- Last Synced: 2024-12-15T16:56:13.907Z (19 days ago)
- Language: TypeScript
- Homepage:
- Size: 1.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).