0.0.8 • Published 5 years ago

react-poke-sprites v0.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Installation

Install the npm module in your app directory.

npm i -S react react-dom react-poke-sprites

Usage

import React from 'React';
import ReactDOM from 'react-dom'
import PokeSprite from 'react-poke-sprites'

ReactDOM.render(
	<PokeSprite
		pokemon={'Lugia'}
		className="lugia-class"
	/>,
	document.querySelector('#root')
)

Props

  • pokemon - Pass the name or the ID of the pokemon.

  • className - Pass in a class name to modify as you see fit.

Related

  • A corresponding Vue.js component is here.

Credits

  • Uses pokemon-gif to retrieve links from Pokestadium.
  • There's already a component for this here but it wasn't working in my case so I decided to create my own.

Author

Anshuman Verma

Contribute

Found a bug, please create an issue

License

license

© Anshuman Verma

0.0.8

5 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago