Made with create-react-library
Recommended node version: 14 Recommended package manager: Yarn
# Yarn
yarn add @thundercore/eco-lib
# Npm
npm install --save @thundercore/eco-lib
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>
);
}
}
yarn build
# or `yarn start` to watch the changes
cd example
yarn
yarn start
- yarn publish
- commit & push package.json
GPL v3