2.4 Publicat el 2014 (open source) Enfocat a desenvolupament per components https://vuejs.org/v2/guide/index.html https://vuejs.org/v2/guide/components.html
receives all user input ProductTable (verd) displays and filters the data collection based on user input ProductCategoryRow (turquesa) displays a heading for each category ProductRow (vermell) displays a row for each product Un sol component? https://pusher.com/sessions/meetup/bristol-js/thinking-in-react https://facebook.github.io/react/docs/thinking-in-react.html
do” "This is how you should do it" Fes una pizza per sopar Vés a la cuina Obre la nevera Treu la base del congelador Treu el formatge de la nevera … Serveix el plat a taula
] for (let i = 0; i < arr.length; i++) { results.push(arr[i] * 2) } return results } const double = arr => arr.map(item => item * 2) Declaratiu Imperatiu "This is what it should do” "This is how you should do it"