Rename helper library to get-error-message
This commit is contained in:
10
examples/element-factory/src/button.js
Normal file
10
examples/element-factory/src/button.js
Normal file
@@ -0,0 +1,10 @@
|
||||
export function createButton() {
|
||||
const button = document.createElement('button');
|
||||
button.textContent = 'Click Me';
|
||||
|
||||
button.addEventListener('click', () => {
|
||||
button.textContent = 'Clicked!';
|
||||
});
|
||||
|
||||
return button;
|
||||
}
|
||||
Reference in New Issue
Block a user