Using React with AMP
Implementation of React UI into AMP. The plugin can be implemented by providing a react
object to the player config:
var config = { var config = { plugins: { react: { resources: [ {src: "#{paths.plugins}react/libs/react.min.js", debug: "#{paths.plugins}react/libs/react.js", type: "text/javascript"}, {src: "#{paths.plugins}react/React.min.css", debug: "#{paths.plugins}react/React.css", type: "text/css"}, {src: "#{paths.plugins}react/React.js", debug: "#{paths.plugins}react/React.js", type: "text/javascript"} ], autoHide: 3 } } } }; akamai.amp.AMP.create("amp", config);