2 * Copyright 2015-present Greg Hurrell. All rights reserved.
3 * Licensed under the terms of the MIT license.
10 import DynamicField from './DynamicField.react';
11 import React from 'react';
12 import type Value from './Field.react';
13 import Field from './Field.react';
14 import Label from './Label.react';
15 import Size from './Size.react';
19 export default class App extends React.Component {
27 _onValueChange = (value: Value) => {
28 this.setState({value});
32 const {value} = this.state;
35 <div className="hextrapolate">
37 Hextrapolate — <Size value={value} />
39 <Label text="Hexadecimal">
42 onValueChange={this._onValueChange}
46 <Label text="Decimal">
48 onValueChange={this._onValueChange}
55 onValueChange={this._onValueChange}
62 onValueChange={this._onValueChange}
69 onValueChange={this._onValueChange}
74 onValueChange={this._onValueChange}
76 <footer className="hextrapolate-footer">
77 <a href="mailto:greg@hurrell.net">Contact</a>
79 <a href="https://github.com/wincent/hextrapolate">Source</a>