+ 4
Can someone please explain me what is framework ? Why do we need abframework? And What does a framewirk do.?
4 Respuestas
+ 1
think of it almost like a template. Like how WordPress, Wix, Mobirise, etc. gives you templates to build websites, Frameworks gives you templates for your code. Just like a template site, it has it limitations to certain aspects of your creativity but overall it's beneficial for you to speed up your workflow.
+ 1
ptp
+ 1
Framework is simply a shortcut. Is a form a more quick of get result. For example: I'll go create a framework now.
// framework.js
function $(thing){
return document.querySelector(thing);
}
Now, always that want select an element use:
$("id"); // id, tag, classe
It is just an example. This is a micro framework that select elements, but you might to do a complete framework the same as jQuery or React.