0.0.2 • Published 6 years ago
jp-test-ui-react v0.0.2
A simple component to easily add Muut UI into React applications.
Install
npm install muut-ui-react
or
yarn add muut-ui-react
Usage
import React, { Component } from 'react';
import MuutReactWidget from 'muut-ui-react'
class MuutUi extends Component {
render () {
return <MuutReactWidget forumName="goma" language="en" />
}
}
export default MuutUi;
or
import React from 'react'
import MuutReactWidget from 'muut-ui-react'
const MuutUi = () => (
<MuutReactWidget forumName="goma" language="fr" />
)
export default MuutUi
Props
Name | Type | Required? | Default Value | Description |
---|---|---|---|---|
forumName | String | Yes | Your community/forum name. | |
language | String | No | en | Your language code. Click here for the list of available language codes. |
Demo
You can run the demo by cloning this repository and running:
npm install && npm start
or
yarn install && yarn start
Open localhost:8080 in your browser