How to use the solid-js.State function in solid-js

To help you get started, we’ve selected a few solid-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krausest / js-framework-benchmark / frameworks / solid-js-v0.0.8-keyed / src / app.jsx View on Github external
constructor() {
    this.handleClick = this.handleClick.bind(this);
    this.onRemove = this.onRemove.bind(this);
    this.onSelect = this.onSelect.bind(this);
    this.run = this.run.bind(this);
    this.runLots = this.runLots.bind(this);
    this.add = this.add.bind(this);
    this.update = this.update.bind(this);
    this.swapRows = this.swapRows.bind(this);
    this.clear = this.clear.bind(this);
    this.state = new State({
      data: [],
      selected: null
    });
  }

solid-js

A declarative JavaScript library for building user interfaces.

MIT
Latest version published 14 days ago

Package Health Score

94 / 100
Full package analysis