Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Starting point for react-load-script typedefs
export = Script;
declare interface IScriptProps {
attributes?: object
onCreate?: () => void,
onError: () => void,
onLoad: () => void,
url: string
declare class Script {
props: IScriptProps;
state: any;
context: any;
refs: any;
forceUpdate(callback: any): void;
render(): any;
setState(partialState: any, callback: any): void;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment