My experience with React 16

  • If you have a React 15.5 app which doesn’t use deprecated features and doesn’t throw errors, then React 16 just works!
  • One of my favorite things about React is that it gives me access to a great library of open-source components.
  • And thanks to the stability of React’s API, I haven’t needed to upgrade many of these components… until now.
  • In previous versions of React, throwing exceptions within event handlers would have unpredictable results.
  • While React’s API hasn’t changed much, it has an entirely new engine under the hood called React Fiber.

Now I don’t want to waste your time with another “What is React 16?”; the official blog is already very informative. But what I can give you is the story of my experience this week, when I upgraded a large project to React 16.
Continue reading “My experience with React 16”

SVG in React – Etleap

If you want to use SVG in #ReactJS, here's a handy guide:

  • This component uses SVG to display the circular progress bar and works just like any other React component.
  • The reason we opted for SVG in this case was that creating a circular progress bar in CSS is tricky.
  • The essential SVG markup required to render the progress bar is very simple:

    We need two circles, one for the dark background, and one for the lighter progress display.

  • SVG should not be a replacement for all graphical user elements, but can be used to more easily achieve tricky UI effects where CSS falls short.
  • That being said, CSS is catching up with SVG and has seen support for several filters, masks, and even custom clip paths.

React.js is a great library for creating user interfaces consisting of components. In the browser React is used to output DOM elements like divs, sections and.. SVG! The DOM supports SVG elements, so there is nothing stopping us from outputting it inline directly with React. This allows for easy creation of SVG components that are…
Continue reading “SVG in React – Etleap”

Time Series Charts with React, Redux and D3

Time Series Charts with #ReactJS, Redux and D3:  by @byrichardpowell #JavaScript

  • We have just finished a complete rewrite of our time series charts using React, D3 and Redux.
  • This way, we soon had control over the y axis, 2 render types and support for multiple axis:

    By the end of my second random week we had stacked area charts, tooltips, y axis with dynamic widths, colour control, axis that were entirely optional and the presentation was a lot more polished:

    This progress was encouraging but it was deceptive.

  • The architecture of the new charts loosely follows 3 statements: React for composability, Redux for performance, helpers wrapping D3 for data visualisation heavy lifting.
  • This pattern is certainly not unique to our time series charts, in-fact it’s pretty common to React and Redux applications.
  • What is interesting though is the properties our chart tooltips have that make this pattern so useful, specifically:

    The next time you have a performance issue with React, perhaps you might consider the above 4 points and arrive at the conclusion that Container components are the way forward.

How we rebuilt our time series graphs using React, Redux and D3 to create server monitoring graphs as reusable components.
Continue reading “Time Series Charts with React, Redux and D3”

From React to Elm

  • From React to Elm | Sebastian's Blog
  • I have noticed that with Elm my workflow has changed substantially.

  • At some point in 2015 I heard about Elm and I was intrigued.

  • This kind of safety is everywhere in Elm.

  • The Elm compiler will pick up every single problem and offer very nice error messages to help resolve the issues.

I have been working in React full time for probably two and a half years now. I work for which is large application mostly built on React for the Front end. During this time I have enjoyed working with React very much, it is a great library for building front end applications.
Continue reading “From React to Elm”

Do you feel form validation is a pain with React?

  • It got way easier since I started using Redux Forms (Only if you use redux though).
  • I don’t use any useless frameworks and don’t feel any pain.
  • Great library, super simple to use once you got used to it.
  • There’s also some great UI component libraries available if you don’t feel like writing your own.
  • Docs are a bit outdated, you can now init form validation by adding validator=”bunny” to

I would also love to know how you are handling it?. Yes VS No.
Continue reading “Do you feel form validation is a pain with React?”

Angular Directives Mapped to React – Angularity

Angular Directives Mapped to React 

#AngularJS #ReactJS #developer

  • It’s common to extract this into a function to keep the render function tidy.
  • import classNames from ‘classnames’ ; // OR var classNames = require ( ‘classnames’ ); // OR if you don’t like typing var cx = require ( ‘classnames’ );
  • value }); }, render : function () { return ( < input onChange = { this .
  • createClass ({ render : function () { var styles = { color : ‘red’ , fontSize : 20 }; return ( < div style = { styles } > this is big and red < /div> ); } });
  • In React, you can do the same with the onChange event, similar to how we passed a function to onClick above.

Read the full article, click here.

@3rdwave_themes: “Angular Directives Mapped to React

#AngularJS #ReactJS #developer”

Coming from Angular, you’re intimately familiar with its built-in directives: ng-if, ng-repeat, ng-class, and all the others that make up a big part of Angular’s appeal.

Angular Directives Mapped to React – Angularity

nodejs cms (part 15)

@_ericelliott @reactjs check out how to create #CMS using #JavaScript with #NodeJS

  • Something that resembles a few aspects of WordPress, mainly the metadata for post objects.
  • Routing will be built-in and so will the Templating/View aspects.
  • My goal is to create something as robust as WordPress, but more simple and built with Node.js 🙂
  • Not saying WordPress isn’t good, it’s just time for me to take my experiences and make them easier.
  • Streamer guide Streamer program Getting started Pastebin Goodies API

Read the full article, click here.

@NowLivecodingtv: “@_ericelliott @reactjs check out how to create #CMS using #JavaScript with #NodeJS”

Currently I’m working on a CMS for Node.js. Something that resembles a few aspects
of WordPress, mainly the metadata for post objects. Routing will be built-in and
so will the Templating/View aspects.

I’m using Nunjucks as a templating language for Themes and anything html. It’s
really a gr… | watch people code products live

nodejs cms (part 15)