MCPcopy Index your code
hub / github.com/Lobos/react-ui / constructor

Method constructor

src/TableHeader.js:7–13  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

5
6class TableHeader extends Component {
7 constructor (props) {
8 super(props);
9 this.state = {
10 asc: 0
11 };
12 this.onSort = this.onSort.bind(this);
13 }
14
15 onSort () {
16 let asc = this.state.asc === 0 ? 1 : 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected