@thundercore/eco-lib
TypeScript icon, indicating that this package has built-in type declarations

1.1.48 • Public • Published

@thundercore/eco-lib

Made with create-react-library

NPM

Recommended node version: 14 Recommended package manager: Yarn

Install

# Yarn
yarn add @thundercore/eco-lib
# Npm
npm install --save @thundercore/eco-lib

Usage

import React, { Component } from "react";

import { Navbar, Footer, Providers } from "@thundercore/eco-lib";

class Example extends Component {
  render() {
    const locale = 'en'
    const myUpdateLocaleFunction = () => {}

    return (
      <Providers>
        <Navbar locale={locale} updateLocale={myUpdateLocaleFunction} />
        <Footer locale={locale} />
      </Providers>
    );
  }
}

Run an example

yarn build
# or `yarn start` to watch the changes
cd example
yarn
yarn start

Upgrade

  1. yarn publish
  2. commit & push package.json

License

GPL v3

Readme

Keywords

none

Package Sidebar

Install

npm i @thundercore/eco-lib

Weekly Downloads

70

Version

1.1.48

License

MIT

Unpacked Size

7.8 MB

Total Files

187

Last publish

Collaborators

  • amos_thundercore
  • peter-tt
  • benson.cho
  • roger.hsu
  • scotttsai