Skip to main content

Installation

CommunityJS is available as an npm package.

First install peer dependencies needed to make the library work:

Dependencies

npm install @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 install @selfcommunity/react-i18n @selfcommunity/react-core

Install react-ui package:

npm install @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-ui

Install react-templates package:

npm install @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-templates

Install react-i18n:

npm install @selfcommunity/react-i18n