23 lines
389 B
JavaScript
23 lines
389 B
JavaScript
![]() |
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>
|
||
|
)
|
||
|
}
|
||
|
}
|