React Routing with this.props.children

Routing with #ReactJS using

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

An example of using React Router (2.8.1) and this.props.children to create page navigation….
Continue reading “React Routing with this.props.children”

JSK Weekly is out. Come and see the best stories of the past week #javascript #reactjs

JSK Weekly is out. Come and see the best stories of the past week  #javascript #reactjs

  • JavaScript modules are with us.
  • Browsers implement them natively, and now Node.js decided to introduce them using *.
  • Johannes Ewald writes about the current state of JavaScript modules, including browser implementations, Webpack, Node.js changes, what does it means for library creators, users, etc.
  • If you are still struggling with parallelism and concurrency, take a look at Jonathan Martin’s article on elegant concurrency patterns in JavaScript.
  • Also big news last week was the release of Node.js 8 which includes npm version 5, a new version of V8 engine with significant performance optimizations, native add-ons support, buffer changes, and much more.

JavaScript modules are with us. Browsers implement them natively, and now Node.js decided to introduce them using *.mjs extension which caused quite a stir in the community. Johannes Ewald writes about the current state of JavaScript modules, including browser implementations, Webpack, Node.js changes, what does it means for library creators, users, etc.

Jake Archibald has a great article on HTTP/2 push specification where he takes a deeper look into it and the problems with the various browser implementations.

If you are still struggling with parallelism and concurrency, take a look at Jonathan Martin’s article on elegant concurrency patterns in JavaScript. He covers event loop, promise chaining, async functions, parallel execution and other topics.

Also big news last week was the release of Node.js 8 which includes npm version 5, a new version of V8 engine with significant performance optimizations, native add-ons support, buffer changes, and much more. We have several articles covering the new features.

Continue reading “JSK Weekly is out. Come and see the best stories of the past week #javascript #reactjs”

A history of JavaScript across the stack

A history of JavaScript across the stack:  #ReactJS #Angular #VueJS

  • Gmail was the first popular web application that really showed off what was possible with client-side JavaScript.
  • Today, Gmail is the classic example of a single-page JavaScript app; it can respond immediately to user interactions and no longer needs to make roundtrips to the server just to render a new page.
  • Ajax described a set of technologies, of which JavaScript was the backbone, used to create web applications where data can be loaded in the background, avoiding the need for full page refreshes.
  • The revised architecture renders the initial pages on the server, but asynchronously bootstraps a new modular JavaScript application to provide the fully-featured interactive experience their users expect.
  • The user’s browser runs no JavaScript at all until after the initial content, rendered on the server, is visible.

Did you know that JavaScript was created in 10 days? In May 1995, Brendan Eich wrote the first version of JavaScript in 10 days while working at Netscape.
Continue reading “A history of JavaScript across the stack”

Minimal Photo Gallery (ReactJS)

Minimal Image Gallery using @reactjs.  I'm very happy to be sharing on @codepen again! 🙌

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Had this idea bubbling around in my head for a while for a simple photo gallery with animations. Decided to get some more React practice in and make it…
Continue reading “Minimal Photo Gallery (ReactJS)”

What we learned after using React Native for a year

  • We have also been building companion Android and iOS apps, for the smartwatch, in React Native (RN).
  • Another amazing feature of React Native is that the same generic code can be used on both the iOS, and Android platforms.
  • There is also a public Facebook group called React Native Community which helped me a lot when I faced a few certain, weird bugs while developing the app.
  • Nevertheless, I was keeping an eye on all the ListView related implementations by React Native community back then, and I came across two interesting implementations :

    Tal Kol used the UITableView to render the JavaScript view inside every cell.

  • Based on our experience with React Native, we can confidently say that React Native provides the same benefits as every other JavaScript based mobile framework with a native feel and performance.

At Witworks we have been developing the Blink smartwatch, which runs on a customised version of Android called Marvin. We have also been building companion.
Continue reading “What we learned after using React Native for a year”

Functional JavaScript for Lazy Developers (Like Me) — SitePoint

Functional #JavaScript for lazy developers:  #ReactJS

  • Functional JavaScript, a Remedy for the Lazy
    One of the core concepts that has driven my quest for knowledge about programming techniques has always been my own laziness.
  • Higher Order Functions
    One of the things that makes JavaScript capable of handling functional programming techniques is the fact that it supports higher-order functions.
  • Pure Functions with No Side Effects
    Functional programming also brings with it some strong opinions about how functions should be written.
  • A pure function in functional programming is the ideal.
  • These days I don’t generally insist on functional techniques for all of my JavaScript code, but I usually find sprinkling in some functional fairy dust makes reasoning about every programming challenge more approachable.

Applying functional techniques improved my programs, problem-solving skills, process; my code was cleaner and easier to maintain — with less work.
Continue reading “Functional JavaScript for Lazy Developers (Like Me) — SitePoint”

Why I prefer Ember.js over Angular & React.js

Reasons to prefer #EmberJS over #AngularJS & #ReactJS:

  • Fortunately one month ago I got a chance to work with a client who wanted me to develop his project in Ember.
  • I was not much excited as ember was a known guy to me, but started developing the project as it’s a day to day life for me.
  • But after delivering the project I started thinking of my experiences with these three front-end frameworks and probably today publishing this article out of my emotions.
  • If all the teams of your organization (or even someone outside your organization) are developing ember applications using ember-cli; they will be very familiar to the projects architecture and in no time can start contributing at any project.
  • The developers of Ember’s core team are also developers in their own projects and this is the biggest plus of Ember.

JavaScript, Node.js, mongo, react, angular and many more
Continue reading “Why I prefer Ember.js over Angular & React.js”