5.0.1 • Published 3 years ago
@stjudecloud/theme-react v5.0.1
St. Jude Cloud Theme React
Ready-to-use React components available for St. Jude Cloud React apps!
Using this package
npm add @stjudecloud/theme-react
import {Navbar} from '@stjudecloud/theme-react';
function MyComponent() {
return (
<div>
<Navbar {...props} />
Cool content
</div>
);
}
PLEASE NOTE: Your build process will need to be able to handle importing image files, e.g. with webpack
+ file-loader
.
Local Setup
Simply npm install
and you can get started.
- Build the library locally with
npm run build
- View and development components via storybook with
npm run storybook
Optional Dependencies (react-router-dom)
Originally, react-router-dom was listed as an optional dependency. However, it turns out that NPM does not actually skip optional dependencies. For this reason. it is declared as a peer dependency, but is correctly handled if the dependency is missing.