@thundercore/eco-lib
v1.1.47
Published
Made with create-react-library
Downloads
37
Keywords
Readme
@thundercore/eco-lib
Made with create-react-library
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
- yarn publish
- commit & push package.json
License
GPL v3