Friday, May 29, 2020

Vue.js: Up and Running


Building Accessible and Performant Web Apps



Preface

 Frontend development is changing. Websites are becoming richer and more interac‐ tive, requiring us as frontend developers to add increasingly complicated functional‐ ity and use more powerful tools. It’s easy enough to update a bit of text on a page by using jQuery, but as we need to do more—updating large, interactive sections of a page; handling complicated state; performing client-side routing; and simply writing and organizing a lot more code—using a JavaScript framework makes our jobs a lot easier. A framework is a JavaScript tool that makes it easier for developers to create rich, interactive websites. Frameworks contain functionality that enable us to make a fully functional web application: manipulating complicated data and displaying it on the page, handling routing client-side instead of having to rely on a server, and some‐ times even allowing us to create a full website that needs to hit the server only once for the initial download. Vue.js is the latest popular JavaScript framework and is rap‐ idly increasing in popularity. Evan You, then working at Google, wrote and released the first version of Vue.js in early 2014. At the time of writing, it has over 75,000 stars on GitHub, making it the eighth most starred repository on GitHub, and that number is growing rapidly.1 Vue has hundreds of collaborators and is downloaded from npm about 40,000 times every day. It contains features that are useful when developing websites and applications: a powerful templating syntax to write to the DOM and lis‐ ten to events, reactivity so that you don’t need to update the template after your data changes, and functionality that makes it easier for you to manipulate your data.

Who This Book Is For

 If you know HTML and JavaScript and are looking to take your knowledge to the next level by learning how to use a framework, this book is for you. You don’t have to be amazing at JavaScript, but I don’t explain what any of the JavaScript in the code examples is doing beyond the Vue.js functionality, so it’s good to have some basic JavaScript knowledge. The code examples are also written using ECMAScript 2015, the latest version of JavaScript, and so contain language features such as const, fatarrow functions, and destructuring.

 If you’re not familiar with ES2015, don’t worry— plenty of good articles and resources can help you with it,2 and most of the code examples are pretty readable anyway. If you’re experienced with React, this book is still for you, but it might be worth checking out Appendix B, which explains some Vue.js concepts as compared to what you already know from React.

Download Link:-
https://drive.google.com/uc?id=1HL8EVAd1UgiFoC3I4jcBtrLsGKZu_03I&export=download
Disqus Comments