Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- class Image extends Component {
- render() {
- const imagePath = '/images/';
- const imageURL = imagePath + this.props.src;
- return (
- <img alt={this.props.src} src={imageURL} />
- );
- }
- }
- export default Image;
Add Comment
Please, Sign In to add comment