Button Example
Block:
.button {}| function _extend (target, obj) { | |
| for ( var i in obj ) { | |
| target[i] = obj[i]; | |
| } | |
| return target; | |
| } |
WARNING: A work in progress, this is a first attempt at getting VideoJs working in a Typescript and React Enviroment.
This was inspired from the VideoJS React Tutorial - (see also Brightcover Player with React and Typescript)
Prerequistes Using TypeScript-React-Starter: https://github.com/Microsoft/TypeScript-React-Starter
Then npm install packages
| export interface BCWindowInterface extends Window { | |
| bc: Function; | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>React and Redux</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.2/redux.js"></script> | |
| <script src="https://fb.me/react-15.1.0.js"></script> | |
| <script src="https://fb.me/react-dom-15.1.0.js"></script> | |
| </head> |