1 |
|
2 |
|
3 | import React, {PropTypes as types} from 'react'
|
4 | import {ApImage, ApImageStyle} from 'apeman-react-image'
|
5 |
|
6 | const ExampleComponent = React.createClass({
|
7 | render () {
|
8 | return (
|
9 | <div>
|
10 | <ApImageStyle backgroundColor='#333'
|
11 | />
|
12 | <ApImage src='http://example.com/images/sample.png'
|
13 | alt='This is it!'
|
14 | scale='fit'
|
15 | />
|
16 | </div>
|
17 | )
|
18 | }
|
19 | })
|