Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> a framework component is a reusable block of javascript while a webcomponent is a reusable HTML element.

Web components/custom elements are reusable behaviours/functions - which can contain custom js, all bundled as a reusable HTML element.

Think of it a bit like an object in an object orientated programming language - the object has both data/state (DOM) and code/functions to manipulate that state.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: