mirror of
https://github.com/gosticks/dash-player.git
synced 2025-10-16 11:55:36 +00:00
31 lines
684 B
JavaScript
31 lines
684 B
JavaScript
import React, {Component} from 'react';
|
|
import {ExampleComponent} from '../src';
|
|
|
|
class Demo extends Component {
|
|
constructor() {
|
|
super();
|
|
this.state = {
|
|
value: ''
|
|
}
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<div>
|
|
<h1>dash-player Demo</h1>
|
|
|
|
<hr/>
|
|
<h2>ExampleComponent</h2>
|
|
<ExampleComponent
|
|
label="This is an example label"
|
|
value={this.state.value}
|
|
setProps={newProps => this.setState({value: newProps.value})}
|
|
/>
|
|
<hr/>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Demo;
|