0.0.17 • Published 1 year ago

fansunited-component-either-or v0.0.17

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Fans United component library starter kit

This template provides a minimal setup to get you started developing React components for Fans United functionality.

You can fork this repo, create a component and publish it to NPM for use in other projects.

How to run the project

First, you'd need to download the dependencies from NPM:

npm install

Then to run it for development, you use:

npm run dev

To build a package for production, you run:

npm run build

This will export the JS files to /dist dir.

To publish the project to NPM, you run:

npm publish

Directory structure

Your code sits in the src dir. Here you will find:

  • main.tsx - The entry point for the application
  • App.tsx - The top-level component that accepts all the props
  • core dir - Contains different files needed for the app - types, translations, etc.
  • components dir - Where your code should live. The Index component is the main component you'd need to work on

Styling

Our components depend on the JoyUI framework

Fans United SDK

When in production the component will expect a fansUnitedSDK prop containing an instance of the Fans United SDK.

However, for development purposes, this is not a good approach. This is why, when in development, we are giving the developer the opportunity to define an SDK instance using env variables. Check the .env file for details on which variables you need.

0.0.17

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago