import react = require("react");

import Explorer = require("./components/explorer");

/**
 * Creates and renders the API Explorer component.
 */
export function run(initial_resource?: string, initial_route?: string): void {
  react.render(Explorer.create({
    initial_resource_string: initial_resource,
    initial_route: initial_route
  }), document.getElementById("container"));
}

import react = require("react");

import Explorer = require("./components/explorer");

/**
 * Creates and renders the API Explorer component.
 */
export function run(): void {
  react.render(Explorer.create(), document.getElementById("container"));
}

--- 
+++ 
@@ -5,6 +5,9 @@
 /**
  * Creates and renders the API Explorer component.
  */
-export function run(): void {
-  react.render(Explorer.create(), document.getElementById("container"));
+export function run(initial_resource?: string, initial_route?: string): void {
+  react.render(Explorer.create({
+    initial_resource_string: initial_resource,
+    initial_route: initial_route
+  }), document.getElementById("container"));
 }
Add optional parameter to specify resource/route

The actual react compoent already had these via an optional Prop, so
we only need to pass it in in the initial `run()` function. Just
pass the string you want to add in and it will adjust the choices.
For example, `AsanaTester.Explorer.run("Projects", "/teams/%d/projects")`
