Sha256: 43a0bcbd2f2c7723904df614c30753d61888aac2d683b231f75bb9541763f5ed
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
import React from 'react' import neutron from 'neutron' export default class NeutronEntryPointComponent extends React.Component { button_click() { for(let i = 0; i < 10; i++) neutron.send('add', [0, i], {once: false}).then(result => console.log(result)).catch(e => console.log(e)) } render() { return( <div> <h2>Welcome to NEUTRON</h2> <p> <button className='btn btn-default' onClick={this.button_click}>Try Neutron</button> </p> </div> ) } }
Version data entries
3 entries across 3 versions & 1 rubygems