Your solution to embeding the Twitch video player in your ReactJS application
https://talk2megooseman.github.io/react-twitch-embed-video/
yarn | npm |
---|---|
yarn add react-twitch-embed-video |
npm install react-twitch-embed-video |
Visit the github page for lives examples and documentation: https://talk2megooseman.github.io/react-twitch-embed-video/
import ReactTwitchEmbedVideo from "react-twitch-embed-video"
.
.
.
<ReactTwitchEmbedVideo channel="talk2megooseman" />
-
Install modules
yarn
-
Check package.json so that the information is correct.
-
Start stroybook and start coding!
yarn start
-
Bundle with
yarn build
-
To test if it works correctly in another project you can use npm
npm install -S ../react-npm-component-boilerplate
Note the relative path
-
If you want to run eslint:
yarn lint
-
If you want to automatically fix lint problems run :
yarn lint-fix
yarn | npm |
---|---|
yarn |
npm install |
yarn build |
npm run build |
yarn start |
npm run start |
yarn release |
npm run release |
yarn deploy-storybook |
npm run deploy-storybook |
yarn lint |
npm run lint |
yarn lint-fix |
npm run lint-fix |