1.0.0 • Published 3 years ago
react-ranking-animation v1.0.0
react-ranking-animation
React component for adding a leaderboard/ranking table with animation effects
Install
npm install --save react-ranking-animation
Usage
import React, { Component } from 'react'
import Leaderboard from 'react-ranking-animation'
import 'react-ranking-animation/dist/index.css'
class Example extends Component {
constructor(props) {
super(props);
this.contestants = [
{name: "John", score: 100},
{name: "Susie", score: 100},
{name: "Adam", score: 100},
];
}
render() {
return <Leaderboard contestants={this.contestants} />
}
}
License
MIT © DennisTsiang
1.0.0
3 years ago