26 lines
425 B
JavaScript
26 lines
425 B
JavaScript
/**
|
|
* @class ExampleComponent
|
|
*/
|
|
|
|
import React, { Component } from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
import styles from './styles.css'
|
|
|
|
export default class ExampleComponent extends Component {
|
|
static propTypes = {
|
|
text: PropTypes.string
|
|
}
|
|
|
|
render() {
|
|
const {
|
|
text
|
|
} = this.props
|
|
|
|
return (
|
|
<div className={styles.test}>
|
|
Example Component: {text}
|
|
</div>
|
|
)
|
|
}
|
|
}
|