background preloader

React

Facebook Twitter

Angular Directives Mapped to React. Ng-class React doesn’t provide something like ng-class, but there is a great library called classnames that does the same and more.

Angular Directives Mapped to React

Install it: npm install classnames Import it however you like: import classNames from 'classnames' ; var classNames = require ( 'classnames' ); var cx = require ( 'classnames' ); Is There Life on React Planet? - XB Software. When a new development technology gets your attention, many different criteria allow you to judge if it’s good enough for gaining benefits for your business.

Is There Life on React Planet? - XB Software

Fast development speed, high-performance rate, good looking user interface, the possibility to develop applications that look and feel good on different devices. Depending on which feature is more crucial for you, you can prefer one programming language or library over the others. But here’s another important thing that you should not forget while choosing a suitable library for your project. The ecosystem. There’s no such thing as a silver bullet when we talk about the web development. The more ways of using React is available, the more issues you can solve with it. The Elevator Pitch for React -Telerik Developer Network. A lot of people are offering up an overview of React.

The Elevator Pitch for React -Telerik Developer Network

In this article, I’m going to toss my thoughts into the mix by providing my own overview. State of React and CSS — KADIRA VOICE — Medium. Recently, I started to work on a project that helps us to develop UI components isolated from the main app.

State of React and CSS — KADIRA VOICE — Medium

Initially, I assumed everyone would write CSS in JavaScript with React. After a while I realized that it’s not fair to assume that everyone would write CSS in JavaScript. CSS is a land of choices. In this article, I will share what I found from the research. Let’s get started. 🤓: Wait. Productive Rage - Writing React apps using Bridge.NET - The Dan Way (from first principles) 15 March 2016 I've had a request from someone to write about how I think that someone from a .net background should write a web-based application.

Productive Rage - Writing React apps using Bridge.NET - The Dan Way (from first principles)

The short answer is that I strongly believe that using Bridge.NET with React, using a Flux-like architecture is the way forward. I think that React changed the game by trying to introduce a way to write applications that addressed the big challenges, rather than what many of the other frameworks did, which was to try to make some aspects of development easier but without tackling the underlying problems.

Pourquoi pas ReactJS ? A l’heure actuelle, AngularJS s’impose comme la référence des frameworks web.

Pourquoi pas ReactJS ?

Son approche “full-stack” (c’est à dire qui contient tout le nécessaire pour construire une application single-page ou “SPA”) séduit et son architecture présente de vraies bonnes idées (modularité, injection de dépendance, …). La formation Zenika marche d’ailleurs très fort. Le framework s’appuie sur sa communauté et son écosystème de librairies dont certaines sont devenues incontournables (UI-router, UI-Bootstrap, angular-translate, etc.). Mais au-delà de l’écosystème AngularJS, il y a celui du Javascript, plus vaste encore et dans lequel se trouve le produit d’un autre géant du web : ReactJS.

Une autre typologie de projet AngularJS est très orienté application de gestion, c’est à dire des écrans de liste/détail, pour faire du CRUD sur des entités métier. Un framework orienté Composant ? Or de l’aveu même de l’équipe AngularJS, l’API des directives n’est pas évidente et leur utilisation peu intuitive. Hot Reloading in React. Hot Reloading in React or, an Ode to Accidental Complexity.

Hot Reloading in React

Adding A Robust Form Validation To React Redux Apps. Adding A Robust Form Validation To React Redux Apps Form validation is vital because it helps with the UX.

Adding A Robust Form Validation To React Redux Apps

MobX: Ten minute introduction to MobX and React. MobX is a simple, scalable and battle tested state management solution.

MobX: Ten minute introduction to MobX and React

This tutorial will teach you all the important concepts of MobX in ten minutes. The core idea State is the heart of each application and there is no quicker way to create buggy, unmanageable applications then by producing inconsistent state. Or state that is inconsistent with local variables that linger around. Hence many state management solutions try to restrict the ways in which you can modify state, for example by making state immutable. MobX makes state management simple again by addressing the root issue: it makes it impossible to produce an inconsistent state. Conceptually MobX treats your application like a spreadsheet.

First of all, there is the application state. React.js Conf 2016 - Aditya Punjani - Building a Progressive Web App. Enaqx/awesome-react: A collection of awesome things regarding React ecosystem.

Props

Flux. Component. Learning. Blog. Mantra. WebPack. GitHub - yongxu/react-DnR. GraphQL. React-virtualized. React Visual Studio. React Native. React and the economics of dynamic web interfaces - NCZOnline. I've been doing web development since 2000, and in that time I've seen eras marked by libraries and frameworks come and go.

React and the economics of dynamic web interfaces - NCZOnline

The Ajax era began around the same time as the jQuery era began, the Backbone era began several years later, and the React era really began about two years ago. Each of these eras brought with it a new realization about the way we can build dynamic web interfaces based on the tools available. jQuery made it clear that browser abstractions and CSS querying were important to developers, Backbone introduced the concept of client-side architecture to many, and React enables the creation of UI components instead of templates. There are plenty of blog posts, talks, and videos touting how React works and why it's good for web development. There's been a lot of discussion around the virtual DOM, embedding HTML into JavaScript with JSX, organizing the UI into components.

The economics of dynamic web interfaces Make only small changes. Unit Test React Components in Meteor — All About MeteorJS. Unit testing your React components can be a bit daunting when you first look at the React and Jest documentation. However with a few helpers and some jQuery we can make it insanely simple to TDD your React tests. To jump right to the code, checkout this repo: React-Meteor-Tests.To get the helpers as a Meteor package: React-Test-Helpers We have a few ways to run unit tests in Meteor. The standard option is to run Velocity and Jasmine or Mocha with Velocity’s HTML spec runner.

This is what we’ll use for this tutorial (note, the upcoming Meteor 1.2 will run your unit tests much faster). The second option is to run another external testing system the usual way inside of the `tests/` directory. Ok, let’s get started. Dan Abramov - Live React: Hot Reloading with Time Travel at react-europe 2015.

Thinking React

How we unit test React components using expect-jsx. React was designed to solve one problem—how to build applications with data that changes over time. Considering the as-you-type search experience offered by Algolia wherein whole results pages, hits and refinement links alike, are updated at each keystroke, React was the obvious choice when we needed a tool to build out our new library of UI widgets: instantsearch.js. We quickly struggled, however, with the unit test best practices for React components. We jumped from Github issues in facebook/react to blog posts and discuss.reactjs.org but couldn’t find a clear unit testing strategy. Angular 2 versus React: There Will Be Blood.

Angular 2 versus React: There Will Be Blood Angular 2 has reached Beta and appears poised to become the hot new framework of 2016. ES6 + React part 1. Dear Templating — Sincerely, JSX Part 1. Dear Templating — Sincerely, JSX Part 1 Surprisingly, the biggest complaint I hear about JSX is along the lines of It’s such a tight coupling to the DOM Well, not really, it is just a declarative syntax to describe components in a tree…Virtual? DOM? A team of designers can freely modify templates without worrying about breaking anything or even touching the logic I know designers buying into JSX because they truly enjoy stepping outside of what they know.

If you’re a designer check out this article. You have to port/reimplement all the stuff that JavaScript has already solved to your templating language. Ding, Ding, Ding! Blog Posts. Compilation of open source/boilerplate React Meteor apps : Meteor. From Blaze to React 04: Layouts & Redirects. We’re pushing forward in our quest to slim down our router code. After getting rid of subscriptions and data context declarations, it’s time to take on redirects.

Thinking About Redirects A “traditional” redirect sends the user to a new route, but a better and less disruptive pattern is to keep the URL the same, and instead just switch out the contents of the template. This type of “in-place” redirect is what we’ll use. Another factor to consider is that most redirects rely on subscription data –typically the current user– to do their job: after all, you can’t know whether to let someone through or not until you know who they are. Redirecting commonly happens when a user tries to access a route without the proper rights. For example, here’s what the isLoggedIn filter originally looked like (warning: ugly code ahead): As you can see, a lot of the complexity comes from the fact that the filter relies on subscription data from the Meteor.user() object.