React Sports Hooks
Get live sports scores in your React app for the MLB, NBA, and the NFL.
Install
npm install --save react-sports-hooks
Usage
Options
You can pass in an options object as the second arg when you instantiate useScores
that can take the following options:
updateIntervalSeconds
(number): How often the data is refreshed, default is 30 seconds.
Example with Options
License
MIT © andrewrjohn