Skip to content
Snippets Groups Projects
Commit 432b1efd authored by Matheo Gallego's avatar Matheo Gallego
Browse files

Juste avant de leave, dernier commit (imports exp)

parent 23832662
Branches
No related tags found
No related merge requests found
class Component {
export default class Component {
tagName;
attribute;
children;
......
class Img extends Component {
import Component from './Component.js';
export default class Img extends Component {
constructor(url) {
super('img', { name: 'src', value: url });
}
......
import Component from './components/Component.js';
import Img from './components/Img.js';
const title = new Component('h1', null, 'La carte');
const img = new Img(
'https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment