Code Monkey home page Code Monkey logo

react-dsmjs's Introduction

react-dsmjs

React.render(ClientOrServer, document.querySelector(‘.you-decide’));

It is the V in MVC

  • Works well with other frameworks like Angular and Backbone
  • JSX, combines your markup and behavioral JS
  • Try to use primitive JS like arrays, objects and functions

Virtual DOM

  • Difs the real DOM, updates for you
  • Removing and building DOM tree nodes is expensive

One directional flow control

  • Pass props down
  • Only store state in Root component and pass a props to children

Component Lifecycle

Rendering

Changes to state and props will cause component to render. I think this makes it easier to understand how and when a component is updated.

Testing

Usage

Before using React we were using a mixture of Backbone and Mustache. This was harder to understand the interaction between the view and the template, and context switching between two files. We currently use Webpack to compile JSX with Babel and SCSS. We require in our .scss files with components so they can be lazily loaded and better namespaced.

We are currently working on newer NodeJS based applications where React is used on both sides of the stack. Being able to write once and choose where to render is great. We are able to truly AB test what is most performant.

React Native

I haven't spent any time trying to develop anything with it yet, but seems interesting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.