This repository contains the source code for the React Renderer component, which is part of the @quixomatic/ui-renderer-react
package.
To install the package, use npm or yarn:
npm install @quixomatic/ui-renderer-react
or
yarn add @quixomatic/ui-renderer-react
Here's an example of how to use the React Renderer component in your project:
import React from 'react';
import ReactDOM from 'react-dom';
import UIRendererReact from '@quixomatic/ui-renderer-react';
const { createElement } = UIRendererReact;
const App = () => {
return createElement('div', null, 'Hello, World!');
};
ReactDOM.render(<App />, document.getElementById('root'));
createElement
Creates a React element.
type
(string | React.Component): The type of the element.props
(object): The properties of the element.children
(ReactNode): The children of the element.
ReactElement
: The created React element.
Contributions are welcome! Please read the contributing guidelines before getting started.
This project is licensed under the MIT License. See the LICENSE file for details.