New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prototype-controls

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prototype-controls

Control aspects of your prototype within the prototype itself.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

prototype-controls

Control aspects of your prototype within the prototype itself.

Screencast of prototype controls in action

Bootstrapped with create-react-app-minimal.

Getting started

Using

To activate the controls, simply press Ctrl + =. Press the same combination to close them.

Installing

npm install prototype-controls

Importing

React

Import PrototypeControls directly and use it as a React wrapper component.

import React from 'react'

import PrototypeControls from 'prototype-controls'

class App extends Component {
  handleNameChange = e =>
    this.setState({ name: e.target.value })

  handleFillInNameClick = () =>
    this.setState({ name: 'Elise' })

  render = () =>
    <div>
      <div>
        <label>Enter your name</label>
        <input type="text" onChange={this.handleNameChange} value={this.state.name} />
      </div>

      <PrototypeControls>
        <button onChange={this.handleFillInNameClick}>Fill in name</button>
      </PrototypeControls>
    </div>
}

Contributing

You're welcome to fork and/or contribute pull-requests and issues to the project.

Cloning and installing

git clone https://github.com/jonathanconway/prototype-controls
cd prototype-controls
npm install

Running examples

npm start

Running tests

npm test

FAQs

Package last updated on 13 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc