React.js Overview via Alex Azarov  #webdev

React.js Overview via Alex Azarov  #webdev

  • Comparing React.js with Angular or other MVC frameworks makes no sense since React is just a representation.
  • Thus, a = b + c, and A will always depend on the values of B an C. – – React constantly works with the DOM, re-rendering it when conditions change (the part of the DOM that is changed by React.js is called a component).
  • Prior to React, such a practice would have seriously affected the application’s performance, but the developers of React.js approached this problem quite radically: they completely rewrote the DOM in JavaScript.
  • An important feature of React.js is the use of JSX.
  • There exist other extensions for React.js, however, considering the “weight” of the framework, their use should be minimized.

A discussion of the React.js web development framework, the pros and cons of this development tool, and who would be best suited using React in their projects.
Continue reading “React.js Overview via Alex Azarov  #webdev”

Improve Your UX by Dynamically Rendering Images via React

Improve Your UX by Dynamically Rendering Images via React @arwong09  #Reactjs #UX #Startups

  • It’s also how performant it is, how intuitive it is — how much it delights your user.We’ve all been there, discovering a new app or web page for the first time and seeing something like this:With high resolution photos and retina screens, it’s all too often we have to sit and watch images painstakingly render.
  • We accomplish this by using React’s onLoad event; we can make the request to the server for the image files, but not render the image in the DOM until the entire file has been downloaded.the end result: smooth as butterThe end result is an app that loads high resolution images and never keeps the user waiting.
  • The placeholder teases the user and lets them know images are being loaded.
  • Furthermore, we hold off on rendering the images until they have been fully downloaded from the server so our user never has to see images painting from top to bottom in the browser.view live demoShow Me the Code!Rendering the PlaceholderFor our placeholder component (LoadingItem in this example), we simply render the image and apply any animation effects we want:export default function () { return ( ReactCSSTransitionGroup transitionName=”loadingItem” transitionAppear={true} transitionAppearTimeout={500} transitionEnterTimeout={500} transitionLeaveTimeout={300} img className=”feed__loading-item” src={img} / /ReactCSSTransitionGroup )}In the render of our Feed component, we simply render LoadingItem as long as we still have FeedItems being loaded:export default class Feed extends Component { … render() { return ( div className=”feed” … {this.props.items.length this.state.loadedItems.length LoadingItem / } … /div ) }}Dynamically Rendering Images via `onLoad`Our Feed component works as follows:export default class Feed extends Component { constructor(props) { super(props) this.state = { loadedItems: [] } } onLoad(feedItem) { let updatedItems = this.state.loadedItems updatedItems.push({ name:, imgPath: feedItem.imgPath }) this.setState({ loadedItems: updatedItems }) }render() { return ( div className=”feed” h1 i) = FeedItem imgPath={item.imgPath} name={} key={i} / )} {this.props.items.length this.state.loadedItems.length LoadingItem / } div className=”hidden” {, i) = img src={item.imgPath} onLoad={this.onLoad.bind(this, item)} key={i} / )} /div /div ) }}So what’s happening here?
  • When the state updates, the newly loaded item is rendered into the DOM with the image already fully downloaded.That’s it!View live demoView full source code (star the repo if you found this helpful!)

It’s a competitive world out there right now. As we all know, just having a good idea isn’t enough to make your company the next billion dollar IPO. Execution is just as important, and when it comes…
Continue reading “Improve Your UX by Dynamically Rendering Images via React”

How we found and installed react fiber

How we found and installed #ReactJS fiber:  via @wschenk #Javascript

  • The other day, Rob Welan one of our awesome team, sent me a link to React Fibre.
  • After some research I found out that React Fiber may be coming to React 16.0.0 and is currently being developed in the Facebook React Master Branch .
  • Anytime you want to update just run in the react folder git pull origin master followed by npm run build and your app will be automatically updated.
  • /react/build/packages/react and npm link ..
  • Next you’ll want to cd into the react folder and run npm install followed by npm run build .

Recently we’ve been working on developing an amazing refresh of our client’s home automation web controller. We’ve been developing the front-end using React, Babel and Redux and have been absolutely loving it. It has been a steep initial learning curve but we found that was mostly because we were being “forced” to learn functional programming #winning.
Continue reading “How we found and installed react fiber”

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”

November Meetup featuring #SmartCityNairobi winners

  • Looking forward to hearing all about #SmartCityNairobi & following along on Twitter!
  • Start a Meetup Group Start a Meetup Group
  • Our events are organized every two months and aim to bring developers, Twitter engineers, and various partners together for technical talks and networking.
  • The meetup is for everyone interested in working with Twitter’s developer products and APIs.
  • Charlie Croom from Twitter will talk about the mobile website we are building in React, our design decisions and features we’re including.

In order to enter our office, you must register your name and email address. Please do so here.
This month, we're excited to have two great talks back at Twitter HQ:
The team from Report Taka, th
Continue reading “November Meetup featuring #SmartCityNairobi winners”


ReactJS & Electron! :D

sMedium: A desktop app for writing Medium stories  via @gavindinubilo

  • upvote tweet share 2016-06-30T03:08:50.204-07:00
  • Gavin – I write code, also Jam API, and Songfari
  • A desktop app for writing Medium stories
  • I built sMedium because I want to get into writing on Medium, but often times getting way too distracted in the browser.
  • It comes with the same writing features that you get in Medium, making items bold, italicized, underlined, ability to write lists (get Medium famous yo)!

Read the full article, click here.

@ChintanGhate: “ReactJS & Electron! 😀

sMedium: A desktop app for writing Medium stories via @gavindinubilo”

sMedium – A desktop app for writing Medium stories. (Mac and Medium) Read the opinion of 20 influencers.


How to use Immutable.js Records with React and Redux — Azendoo Team — Medium

How to use Immutable.js Records with #ReactJS and Redux

  • We can create a container to present our data and connect it to our application state.
  • export a clear type for each model;
  • As we continue to improve our app, we struggled with the lack of consistency in our models, even if they were immutable.
  • If we mess up with the TaskListItem component, a clear message will pop up in our console.

Read the full article, click here.

@ReactiveConf: “How to use Immutable.js Records with #ReactJS and Redux”

It’s the small things that change your product. React and Flux can be small things, but using them has changed our product like we could…

How to use Immutable.js Records with React and Redux — Azendoo Team — Medium