How to use the react-lightning-design-system.util.setAssetRoot function in react-lightning-design-system

To help you get started, we’ve selected a few react-lightning-design-system examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mashmatrix / react-lightning-design-system / examples / client / scripts / main.js View on Github external
import path from 'path';
import React from 'react';
import ReactDOM from 'react-dom';
import { util } from 'react-lightning-design-system';

import Root from './components/Root';

util.setAssetRoot(path.join(location.pathname, 'assets'));

ReactDOM.render(, document.getElementById('root'));

react-lightning-design-system

Salesforce Lightning Design System components built with React

MIT
Latest version published 27 days ago

Package Health Score

75 / 100
Full package analysis