Files
nym/ts-packages/react-components
Fouad 2eee5195cc React / React DOM / Types upgrade to version 18 (#2830)
* new react and reactdom packages in wallet

* new react and reactdom packages in root

* new react and reactdom packages in nym connect

* new react and reactdom packages in root

* update react and reactdom for explorer

* react and react-dom upgrade for ts-packages

remove unused import

fix linting error

* use custom FC typing

move typings folder

* fix type error
2023-01-12 17:15:31 +00:00
..

Nym Shared React Components

This package contains shared React components that are used in other Nym projects.

It uses the following packages:

Building

yarn
yarn build

Development

Run watch mode with:

yarn watch

Or you can run Storybook with:

yarn storybook

Or you can run the example project in dev mode and this package in watch mode, and test results in the example project's dev server output.

Playground

There are playground components that are intended to be used during development to see the effects are changes to the MUI theme or shared components at a glance.

They are available in Storybook from src/stories/Playground.stories.tsx.

Tip: use the playground to make sure components stay consistent and you don't break other components while making changes

Shared assets

This project uses shared asset files such as favicons and logos.

Tip: use to keep your project consistent with Nym's branding and so that it automatically receives changes when the shared assets change. Please try to avoid duplicating the files in the shared assets directory.

Publishing

This package is not published to NPM ... yet.

TODO

  • ugprade to React 18
  • upgrade Storybook
  • upgrade MUI