1 | import Nested from './nested';
|
2 |
|
3 | import { Component } from 'what';
|
4 |
|
5 | export default class Foo extends Component {
|
6 |
|
7 | handleEvent = (a, b) => {
|
8 | console.log('event', a, b);
|
9 | };
|
10 |
|
11 | render() {
|
12 |
|
13 | return (
|
14 | <Nested text={ this.props.text } onChange={ this.handleEvent }>
|
15 | {
|
16 | this.props.values.map((v) => {
|
17 | return (
|
18 | <Nested.Val value={ v } />
|
19 | );
|
20 | })
|
21 | }
|
22 | </Nested>
|
23 | );
|
24 | }
|
25 | } |
\ | No newline at end of file |