@react-foundry/simple-components
v0.1.7
Published
Simple React Foundry components.
Readme
React Foundry - Simple components
Just the simple React Foundry React components, that will work with Next.js.
(Eventually we hope to deprecate this package in favour of just using the main
@catlyse/components package.)
Using this package
First install the package into your project:
npm install -S @react-foundry/simple-componentsThen use it in your code as follows:
import React, { createElement as h } from 'react';
import { AnchorList } from '@react-foundry/simple-components';
export const MyComponent = props => (
<AnchorList
items={[
{ href: '/foo', text: 'Foo' },
{ href: '/bar', text: 'Bar' },
{ href: '/baz', text: 'Baz' }
]}
/>
);
export default MyComponent;Working on this package
Before working on this package you must install its dependencies using the following command:
pnpm installTesting
npm testBuilding
npm run buildClean-up
npm run clean