Skip to content
Snippets Groups Projects
Commit 8f39c1cb authored by Julien Desmons's avatar Julien Desmons
Browse files

final

parent 2723a3e4
No related branches found
No related tags found
No related merge requests found
import Component from './Component';
class Img {
link;
class Img extends Component {
constructor(link) {
super('img', { name: 'src', value: link }, null);
this.link = link;
}
render() {
return `<img src=${this.link} />`;
}
}
export default Img;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment