ReactJS and The Future of Web Development

Check out why ReactJS is becoming popular in Web Development?  #WebDevelopment #ReactJS

  • ReactJS is an open source JavaScript library use to build interactive user interfaces for the websites and other applications.
  • ReactJS is becoming popular in web development.
  • So, if you’re looking to create web applications with interactive UI in quick-time, then ReactJS library suite is your best choice.
  • You can build interactive user interfaces quickly with ReactJS to save valuable time and money without compromising the functionality.
  • Also, you can render ReactJS on the server-side, which is another advantage of using ReactJS for web development.

ReactJS is an interactive framework which is very simple to use. It is easy to build interactive user interface (UI) with ReactJS as per user’s persona.
Continue reading “ReactJS and The Future of Web Development”

Source Soft Solutions — Planning to Get An App Built – Ionic V/S React…

Planning to Get An App Built – Ionic V/S React Native



#mobileapplicationdevelopment

  • Some of these companies have specific needs while pursuing application development such as building the cross-platform application, hybrid application or native application.
  • Hybrid VS. Native is a long-standing debate prevalent amongst companies looking for app development.
  • Some of the widely used hybrid application development frameworks include: Ionic, React Native, NativeScript, PhoneGap and Xamarin.
  • It is a classic hybrid development framework which allows web developers to build apps across all major platforms using a single code base.
  • If you have to develop an app in short time span which should have good performance and supports both Progressive Web Apps (PWA) and Native browser apps, then Ionic is the best suitable framework.

In the present time, more and more companies are putting in efforts to build their respective digital products. Some of these companies have specific needs while pursuing application development such as building the cross-platform application, hybrid application or native application.
Continue reading “Source Soft Solutions — Planning to Get An App Built – Ionic V/S React…”

The Performance Cost of Server Side Rendered React on Node.js

The Performance Cost of Server Side Rendered #reactjs on Node.js by @velmu

  • Note: After initial results I received feedback that I should define the environment variable NODE_ENV=production as this greatly improves performance of server side rendered React.
  • For throughput you can see that React is at a different league compared to the other templating engines when running without production settings, being close to ten times slower than the fastest traditional templating engine.
  • In production environment React performs again similarly to Nunjucks, but noticeably the average response time is significantly longer with the diffrence being some 70ms at concurrency of 250.
  • Like in throughput results, Pug performs close to ES6 template literals, but there is a consistent advantage in response times by the JavaScript native templating – some 12 percent at peak concurrency.
  • Throughput stabilises for both options from concurrency of 5 or more, but for high concurrencies the response time for uncompiled templates grows respectively more.

I like React as a templating engine, not only on the client side but on the server as well. Over the last year or two rendering templates with React.js on the server has become commonplace. Services from rather static content driven sites to Universal JavaScript Applications built on frameworks like Next.js are serving dynamic of server side rendered views using React.
Continue reading “The Performance Cost of Server Side Rendered React on Node.js”

The Performance Cost of Server Side Rendered React on Node.js

  • I created a simple Node.js application (Source on GitHub) with TypeScript that renders a HTML table of 100 rows of employee data from a JSON file with a number of different templating methods: – – For measure I threw in a simple Node HTTP server that dumped the content as…
  • I ran the benchmarks with concurrencies of 1, 5, 50, 100 and 250 and tracked throughput (requests / second) and the average response time (in Milliseconds of waiting for response).
  • Nunjucks scores second last, but beats React by a significant margin providing five times the throughput of ReactDOMServer on the latest Node.js (9.2.0) – – Native ES6 template literals and Pug are a close match, with Pug pulling ahead at a clear margin of 5 to 6 percent throughout the…
  • For the other libraries the average response times are consistent with throughput, although it seems that the native ECMAScript Template Literals provide a lower average response time, especially at high concurrencies; at 250 concurrent requests Pug takes an average of 81ms to respond, where native ES6 templates take around 40%…
  • Throughput stabilises for both options from concurrency of 5 or more, but for high concurrencies the response time for uncompiled templates grows respectively more.

It seems the original results for React.js have not been optimal, since the Node environment had not been set to production. In this env thus React does a lot of extra work under the hood. Thank you to Anatoli Papirovski for noticing this and the additional PR to further optimise performance.
Continue reading “The Performance Cost of Server Side Rendered React on Node.js”

Modern static site generation

  • There is this function called Server Side Rendering where you can produce static HTML content directly from a tree of React.js components.
  • At the time of reading this, this site will already be served by GitHub pages and the content you will see once you view the source it’s been generated by Gatsby.js.
  • Here’s my list:

    At the time that I started following them, all of them were in a very early stage and none of them could generate my site’s content the way I wanted and in the same way as my previous one so to not lose paths and certain functionalities.

  • Think of when you are caching the home page of a WordPress powered site and you are serving the cached content to every visitor.
  • Imagine that instead of having memcached caching your HTML in front of your WordPress site, you trigger a hook each time your database changes that will re-generate the frontend using Gatsby.

In this post, I will talk about static site generators. How they have evolved and why I switched from a Ghost powered site to Gatsby.js, a modern static site generator.
Continue reading “Modern static site generation”

How to fetch data in React

  • When this method runs, the component was already rendered once with the method, but it would render again when the fetched data would be stored in the local state of the component with .
  • When the data is fetched successfully, it will be stored in the local state with React’s method.
  • The component so far can be split up into two responsibilities: showing the fetched data with conditional renderings and fetching the state with local state management.
  • In addition, the higher order component uses a generic data container in the local state called .
  • By using higher order components to fetch the data, you can easily opt-in this feature for any component with any endpoint API url.

Basics about React’s data fetching to request real world data by using the native fetch API…
Continue reading “How to fetch data in React”

An augmented reality experiment in React Native – hello JS

#AugmentedReality w/ @reactnative & @googlecloud vision by @locropulenton

  • With that in mind, I’ve built a small app as an experiment that translates and subtitles in real time what you see from the camera your phone.With the help of advanced Google Cloud technology such as Cloud Vision, the information and the surrounding environment can become interactive.I am aware that there are others open source alternatives like Open Cloud Vision, but I am happy to choose Google Cloud API for doing this app demo since I found its implementation is encouraging.I am also aware it is not free at all, but I still have a trial time to play with it and make this experiment real.Google Cloud API dashboardBehind the scenesReactNative is a framework used to build native mobile apps using JavaScript and React.In React, virtual reality is considered as a new platform, as Android or the web, which is great in terms of consistency and scalability, but mobile integration is not out of the box as of today.In short, behind the scenes the app, using the camera captures and extracts the text with support for a broad range of languages for any given scenario.
  • It also features automatic language identification.The API provides a result to be sent to the Translate API in order to display the response text in a layer on top of the camera video as a subtitle.Animations: I am using the accelerometer to create an animated transition in order to create an experience when rotating the mobile on the z axis.For more information about that, look into the following snacks about how I made a z axis transformation and a simple toggle selector.Performance: Looking into the performance monitor I found that I am not achieving 60 frames per second but dropping some frames, basically because I am doing a lot of things in the UI threat at the same time.
  • The camera is capturing each n millisecond and the transformation applied cannot be used by the native driver.User experience is good enough for now, but I am aware it could be improved in the future.Possible improvementsThough this app has been developed as a prototype there are many improvements that could be also considered in the future.Compute hamming: Computes the Hamming distance between two sequences, that could be useful to identify and verify that the translated text has changed enough to be re calculated.An image diff algorithm could be also useful to avoid overkill when taking a photo.As well as the usage of the API library for Node.js for Google Cloud, to improve the error handler, code style and encoding.Launched just for beta testersYay!
  • after adding 40 seconds of timeout and some integrations for the Android platform such as code push and crash reporting, I released a simple version for beta testers in the Google Store so that users can play with it a little bit.More use casesThere are other use cases where it can be improved and enhanced.
  • Imagine you go to a restaurant in a foreign country for dinner and you can’t understand the menu.Or if you travel abroad to Barcelona or Buenos Aires, can it make you easier to understand where are you going in the metro or in a bus when looking at the signs?There are “infinite” use cases here for different places or situations as of where this sample could be improved to become a real application that adds value somewhere and someplace.In fact, a great augmented reality app has been just released, and helps blind people to recognize objects, that is amazing!

tldr; if you want to see how a simple augmented reality app is developed, see the following repository. Augmented reality is an overlay of content on the real world, its purpose it to enhance the…
Continue reading “An augmented reality experiment in React Native – hello JS”