summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/react/src/App.js
blob: a5607472cc77011aa6fbf5c9632160a4af0d77fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;