/react-poke-sprites

A react component that renders animated pokemon sprites.

Primary LanguageJavaScriptMIT LicenseMIT

react-poke-sprites npm npm Lugia

A react component that renders animated pokemon sprites

forthebadge forthebadge forthebadge

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'}
	/>,
	document.querySelector('#root')
)

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