Skip to content
esr360 edited this page Feb 9, 2020 · 40 revisions

Requirements

  • Node.js
  • React ^16.12.0

Installation/Setup

npm install --save @onenexus/synergy
Basic
import React from 'react';
import { Module, Component } from '@onenexus/synergy';

...
Complete
import React from 'react';
import {
  Container, 
  Module, 
  Wrapper, 
  Group, 
  Component, 
  SubComponent, 
  Provider, 
  useTheme, 
  useConfig, 
  useUtils
} from '@onenexus/synergy';

...
Simplified Complete
import React from 'react';
import * as Synergy from '@onenexus/synergy';

...

Sass Setup

If using Sass, you will need to configure your compiler to use Synergy-Sass-Importer.

See the Using Sass With Synergy page for more information