flight Ultra Simple Animation Compositions for #ReactJS On Github →

flight
Ultra Simple Animation Compositions for #ReactJS
On Github →

  • The best way to build animation compositions for React.
  • Flight tries to be for React what Principle is for Sketch compositions – the fastest, most friction free way to compose and an effortless way to animate an idea, an interaction, or a short movie-like composition in a self-contained widget (a React component after all).
  • Just clone and use the example, built around :

    And now you can frame your compositions in , require and place it in any other React component.

  • For the cool stuff, it walks the component tree, makes decisions about what should move where, and builds a clean and nice declarative data structure that represents the way compositions should behave.
  • To all Contributors – you make this happen, thanks!

http://www.react-flight.io
Continue reading “flight
Ultra Simple Animation Compositions for #ReactJS
On Github →”

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”

Introducing Create React Native App

An easy way to get started with #reactnative without dealing with build dependencies #appdev

  • Today we’re announcing Create React Native App: a new tool that makes it significantly easier to get started with a React Native project!
  • With Create React Native App, there’s no need to use Xcode or Android Studio, and you can develop for your iOS device using Linux or Windows.
  • This is accomplished using the Expo app, which loads and runs CRNA projects written in pure JavaScript without compiling any native code.
  • Try creating a new project (replace with suitable yarn commands if you have it installed):

    This will start the React Native packager and print a QR code.

  • Create React Native App is now stable enough for general use, which means we’re very eager to hear about your experience using it!

Today we’re announcing Create React Native App: a new tool that makes it significantly easier to get started with a React Native project! It’s heavily inspired by the design of Create React App and is the product of a collaboration between Facebook and Expo (formerly Exponent).
Continue reading “Introducing Create React Native App”

Impressions about VueJs & ReactJS. What people think…

  • You already know about Flux/Redux, so here’s what Vue has to offer:

    Last, what continually has me impressed and coming back for more with Vue.js is its outstanding community, the professionalism of Evan and his contributors, its ease of use, and its no-brainer alignment with the Web Components standard.

  • A few things about Vue got me hooked over React, namely:

    “ I used Angular 1 for a little over a year then switched to React.

  • I’ve taken a look at Vue a couple of times but never really built anything with it, that being said I’ve heard nothing but great things about it and from the looks of it, it is pretty easy to pick up.
  • So I would argue that instead of looking for the easiest/ most powerful/ most popular framework out there it might be more useful to learn something useful to you long-term as a developer (although React also has the most popular thing covered).
  • I actually really wanted to do React, but Vue was just so much more approachable that I couldn’t justify spending the extra time learning React.

VueJS vs. ReactJS – what people think about libraries, frameworks & more. How will you decide which ones are worth spending time over?
Continue reading “Impressions about VueJs & ReactJS. What people think…”

Optimizing React Rendering (Part 1) – Flexport Engineering

Optimizing React Rendering (Part 1)  #Reactjs #Javascript #Webdev

  • PureComponent does a shallow object comparison on the props, and since you are passing in the same object reference, shouldComponentUpdate will return false and the updated data will not be rendered.This means that if any part of your app mutates data that needs to be rendered, PureComponent puts you at risk of displaying stale data.
  • This is by far the biggest blocker because it results in incorrect UI behavior, and it is outside the control of your component.Fix: Never mutate values used as React props or state.
  • Even if some ancestor component triggers a re-render, PureParent will not re-render because neither its state or props has changed.This gotcha also leads to incorrect UI behavior, but the issue is scoped to the component itself, making it easy to fix.Fix: Extract data dependency into state or props, and update state or props when the data changes.Object copyingQ: What happens when Parent is re-rendered with an unchanged props.dataList?A: PureChild is re-rendered wastefully because filter returns a new object, which tricks PureChild into thinking that the prop has changed.This problem is triggered by calling any function that creates a new object or using an inline object literal in render.Fix: Cache your derived data calculations.
  • A: PureChild is re-rendered wastefully because arrow functions and Function.prototype.bind return new function instances, which tricks PureChild into thinking that the onClick handler has changed.Fix: Don’t use arrow functions and bind in render.
  • When those props change, PureChild will re-render wastefully.Fix: Unless you’re writing some sort of higher-order-component, don’t be lazy and be explicit about the props that you are passing.ConclusionTurns out our app is littered with every single one of these gotchas, and is especially dependent on mutation side-effects.

We migrated our web app to React almost 3 years ago, and since React performs extremely well out of the box, optimizing performance was not something we had to worry about. However, as our…
Continue reading “Optimizing React Rendering (Part 1) – Flexport Engineering”

Impressions about VueJs & ReactJS. What people think…

Impressions about #VueJs & ReactJS. What people think... - BootstrapBay  #Coding

  • You already know about Flux/Redux, so here’s what Vue has to offer:

    Last, what continually has me impressed and coming back for more with Vue.js is its outstanding community, the professionalism of Evan and his contributors, its ease of use, and its no-brainer alignment with the Web Components standard.

  • A few things about Vue got me hooked over React, namely:

    “ I used Angular 1 for a little over a year then switched to React.

  • I’ve taken a look at Vue a couple of times but never really built anything with it, that being said I’ve heard nothing but great things about it and from the looks of it, it is pretty easy to pick up.
  • So I would argue that instead of looking for the easiest/ most powerful/ most popular framework out there it might be more useful to learn something useful to you long-term as a developer (although React also has the most popular thing covered).
  • I actually really wanted to do React, but Vue was just so much more approachable that I couldn’t justify spending the extra time learning React.

VueJS vs. ReactJS – what people think about libraries, frameworks & more. How will you decide which ones are worth spending time over?
Continue reading “Impressions about VueJs & ReactJS. What people think…”

Getting up and running with #reactjs @FableCompiler and Suave on #netcore #fsharp

  • The Fable compiler is used to compile the F# client code to JavaScript so that it can run in the browser.
  • If you look at then you will see code that is shared between client and server.
  • NET core and for the client the Fable compiler is translating it into JavaScript.
  • With Expecto you write tests as values in normal code.
  • If you are in development mode then you can use Expecto’s focused test feature to run a selected test against the running server.

fable-suave-scaffold – Working sample of a Suave + Fable + Elmish project with hot reloading
Continue reading “Getting up and running with #reactjs @FableCompiler and Suave on #netcore #fsharp”