@lsportsltd/sec-react
v6.0.0
Published
> *LSports' Sports Expert Chat widget*
Downloads
10
Readme
@lsportsltd/sec-react
LSports' Sports Expert Chat widget
This package wraps the native HTML widget element with React component.
Usage
Import the widget like any other React component, anywhere in your code.
// App.tsx
import { LSportsSec } from '@lsportsltd/sec-react';
export const App = () => {
const [apiToken, setApiToken] = useState('123');
const [fixtures, setFixtures] = useState<Fixture[]>([]);
return <LSportsSec apiToken={apiToken} fixtures={fixtures} />;
};