React Sandbox Frame
this package create an customizable and declarative iframe
usage
/** * connect frame and you component * @param */ { console // output <p>hello world</p> } { return <Frame onLoad=thisonLoad> <p>hello world</p> </Frame> }
Optional Props
The Frame
component takes a couple of props that you can use to customize its behaviour:
children [?element]
onLoad [?function]
src [?string]
style [?object]
title [?string=page-wrapper]
stylesheets [?Array<String>=[]]
scripts [?Array<String>=[]]