NHL widget for showing upcoming and recently played games for current season (Sample project)
How to use
Basic usage
import { Schedule } from '@christiansahlstrom/nhl-cool-widget';
const Component = () => (
<>
<Schedule />
</>
);
export default Component;
With team id filtering activated
import { Schedule } from '@christiansahlstrom/nhl-cool-widget';
const Component = () => (
<>
<Schedule filterActive={shouldFilter} teamId={21} />
</>
);
export default Component;
Check here for getting the team ID that you want to use: https://statsapi.web.nhl.com/api/v1/teams
Note that this is just an example component