Why Use React JS for Fast Interactive User Interfaces? — SitePoint

Why Use #React #JS for Fast Interactive User Interfaces?  #reactjs #webdev #javascript #jsx

  • The Virtual DOM is at the core of what makes React fast at rendering user interface elements and their changes.
  • Each time there are changes to the underlying data in a React app, React creates a new Virtual DOM representation of the user interface.
  • This is where efficient diff algorithms, batching DOM read/write operations, and limiting DOM changes to the bare minimum necessary, make using React JS and its Virtual DOM a great choice for building performant apps.
  • Our First 50,000 Stars — Vjeux

    Although some would argue that all projects need React JS, I think it’s uncontroversial to say that React would be a great fit for web apps where you need to keep a complex, interactive UI in sync with frequent changes in the underlying data model.

  • Resources
    If you’re curious about how React JS and its Virtual DOM work, here’s where you can learn more:

    React JS and other similar JavaScript libraries ease the development of snappy, event-driven user interfaces that are fast at responding to state changes.

Maria Antonietta Perna discusses what makes React JS a great fit for building fast UIs and introduces the concept of the Virtual DOM and how React uses it.
Continue reading “Why Use React JS for Fast Interactive User Interfaces? — SitePoint”

React Animations 101: CSS transitions – Bjorn Holdt – Medium

React Animations 101: CSS transitions  #javascript #animation #css #react #reactjs

  • Examples with React and CSS transitionsHow do we use CSS transitions in react?Progress bar example (Codepen)Let’s start off with a progress bar first.
  • progress { transition: width 100ms ease-in-out;}Without CSS transitions whenever the progress bar updates, it would expand to its new width immediately.
  • In this case, when the navigation bar is visible the slideIn class is applied, when it is not visible the slideOut class is applied.The Navigation Bar Component (on codepen)const Navbar = ({ visible }) = ( div id=”navbar” className={visible ?
  • slideIn { transform: { transform: translateX(-220px);}Codepen exampleWe use the transform property in CSS to position the navigation bar.
  • slideOut will move the element completely out of view again.With the CSS transition, we tell the browser whenever there is a change to the transform property (in this case when the element’s position is changed), animate the change over 400ms.

If you were to follow my learning path to get a navigation bar animation working with react, you will end up with a combination of react-motion, ReactCSSTransitionGroup, yet-another-react-animation…
Continue reading “React Animations 101: CSS transitions – Bjorn Holdt – Medium”

Frontend freedom with a moltin-powered ReactJS store

We now have an awesome sample ReactJS store built on moltin! Thanks @TarikFojnica 🙌🏼 🎉

  • ‘ReactJS works by storing the state of your application internally, and only re-rendering your content into the browser (the DOM manipulation) when the state changes.
  • With flexible, reusable components to make development workflows efficient and giving freedom to your store’s UI, it’s simple to learn and use and fits in with our own philosophies at moltin perfectly.
  • It was actually Tarik, a freelance frontend engineer who built an example store using ReactJS and moltin.
  • Fast forward to 2017 and with AngularJS becoming depreciated and Angular 2 having an entirely different API, Tarik took advantage of switching and experimenting with ReactJS.
  • Tarik’s sample store can be seen at and demonstrates the power and freedom that ReactJS gives frontend developers.

Here, we’ll look at ReactJS for moltin to demonstrate the power of this new front end framework, coupled with the flexibility of Moltin.
Continue reading “Frontend freedom with a moltin-powered ReactJS store”

GraphQL the future for APIs? – Ideas2IT – Medium

GraphQL the future for APIs?
#Graphql #Reactjs #js #API #CloudComputing

  • Your client requests data in one request even in slow mobile network connections.
  • GraphQL is a query language for your API, and a server-side runtime for executing queries by using a type system you define for your data.
  • Rather than construct several REST requests to fetch data that you’re interested in, you can often make a single call to fetch the information you need.
  • We think though GraphQL is backed by big companies, thinking in Graphs seems to be good fit for your data and kind of topology.
  • The post throws insights on why GraphQL is the future for APIs.

There has been a lot of buzz about GraphQL recently. GraphQL name rings bell in most of conferences around the world. There were a number of GraphQL sessions in the recent ReactEurope tour. This post…
Continue reading “GraphQL the future for APIs? – Ideas2IT – Medium”

Wait. What is React Native Again?

Wait. What is React Native Again?   #reactNative

  • Overall, React Native has allowed our teams to build native apps in technology we understand, using tools we know and love.
  • One of our projects involved a re-write of an existing mobile application in Cordova.
  • Not only is React Native an extremely powerful tool for developing cross-platform applications in JavaScript, it’s very easy to learn for any Javascript developer with React knowledge .
  • When using a tool like Cordova, you write the majority of your business logic and UI in JavaScript.
  • React Native is a set of tools and libraries that allows developers to write React Components that generate genuine native interfaces.

As part of our consulting process here at Differential, we often determine that a mobile app would be a good fit for our clients. Most of the time Android and iOS support is desirable, and dedicating development resources to building a native experience for both platforms is very resource intensive. We’ve skirted around this issue in the past, mostly by using Cordova, which lets us write HTML, CSS, and JS to create cross-platform apps. Cordova works great for the most part, but we discovered that you can only go so far when using web technology to create apps that feel truly native.
Continue reading “Wait. What is React Native Again?”