Book Image

Isomorphic JavaScript Web Development

By : Tomas Alabes, Konstantin Tarkus
Book Image

Isomorphic JavaScript Web Development

By: Tomas Alabes, Konstantin Tarkus

Overview of this book

<p>The latest trend in web development, Isomorphic JavaScript, allows developers to overcome some of the shortcomings of single-page applications by running the same code on the server as well as on the client. Leading this trend is React, which, when coupled with Node, allows developers to build JavaScript apps that are much faster and more SEO-friendly than single-page applications.</p> <p>This book begins by showing you how to develop frontend components in React. It will then show you how to bind these components to back-end web services that leverage the power of Node. You'll see how web services can be used with React code to offload and maintain the application logic. By the end of this book, you will be able to save a significant amount of development time by learning to combine React and Node to code fast, scalable apps in pure JavaScript.</p>
Table of Contents (16 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Component-based UI development


If you start working on a medium-size to large web application project for the first time, you will soon realize that sharing CSS and other assets throughout the project may lead to constant bugs, and in general, makes the development process harder than it should be. Imagine when someone from your team adds a global CSS rule in order to add some new functionality on the site but accidentally breaks a couple of existing pages. Even if you start small, as soon as your app becomes more complex, you will face this issue when you need to rethink your web UI architecture and project structure in order to make things more manageable and easy to maintain.

Many companies use a component-based approach to web UI development-an approach where instead of referencing shared styles, media assets, localization files, and so on, developers create standalone components, which can be developed and tested in isolation. These components can be shared and reused across the app...