Installation
CommunityJS is available as an npm package.
First install peer dependencies needed to make the library work:
Dependencies
- npm
- yarn
npm install @mui/material @mui/icons-material @emotion/react @emotion/styled react-intl
yarn add @mui/material @mui/icons-material @emotion/react @emotion/styled react-intl
Based on which package you want to install proceed as follows:
Install react-core:
- npm
- yarn
npm install @selfcommunity/react-i18n @selfcommunity/react-core
yarn add @selfcommunity/react-i18n @selfcommunity/react-core
Install react-ui package:
- npm
- yarn
npm install @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-ui
yarn add @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-ui
Install react-templates package:
- npm
- yarn
npm install @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-templates
yarn add @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-templates
Install react-i18n:
- npm
- yarn
npm install @selfcommunity/react-i18n
yarn add @selfcommunity/react-i18n