summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/react/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/react/src/App.js')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/react/src/App.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/react/src/App.js b/devtools/client/debugger/test/mochitest/examples/react/src/App.js
new file mode 100644
index 0000000000..a5607472cc
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/react/src/App.js
@@ -0,0 +1,25 @@
+import React, { Component } from 'react';
+import I from "immutable"
+
+class App extends Component {
+ componentDidMount() {
+ this.fields = new I.Map({a:2})
+ }
+
+ onClick = () => {
+ const f = this.fields
+ console.log(f)
+ }
+
+ render() {
+ return (
+ <div className="App">
+ <button onClick={this.onClick}>Click Me</button>
+ </div>
+ );
+ }
+}
+
+window.clickButton = () => document.querySelector("button").click()
+
+export default App;