Skip to content

Ecleptic/ecleptic-react-weather-component

Repository files navigation

npm (scoped) npm bundle size (minified) install size Netlify Status

Just learning how to build NPM packages

A Basic react component that pulls the weather from openweathermap.org

Required Props: APIKEY, ZIP Required Peer Dependencies:

usage:

import React from 'react'
import Weather from 'ecleptic-react-weather-component'

function App(){
  ...

  <Weather zip={ZIP} APIKEY={APIKEY} />

  ...
}
export default App

[2.0.1] - 2019-05-21

Removed Styled Components from dependency tree

  • Styled components was doing very small layout changes. It is better to just have some inline styling in the JSX than have a large library as a peer dependency.

[2.0.1] - 2019-05-20

Changed Build target

  • Webpack was originally building to an html file for some reason. (Don't copy & paste docs code kids) Changed it back to building to an index.js and that worked.

[2.0.0] - 2019-05-20

Created Peer dependencies

  • Instead of being Bundled, React, React-Dom, & Styled-Components are now peer dependencies instead.

[1.0.0] - 2019-04-24

Initial Commit

  • Created Basic API Props needing ZIP & API token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published