background preloader

A JavaScript library for building user interfaces - React

A JavaScript library for building user interfaces - React
A Simple Component React components implement a render() method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by render() via this.props. JSX is optional and not required to use React. Try clicking on "Compiled JS" to see the raw JavaScript code produced by the JSX compiler. A Stateful Component In addition to taking input data (accessed via this.props), a component can maintain internal state data (accessed via this.state). An Application Using props and state, we can put together a small Todo application. A Component Using External Plugins React is flexible and provides hooks that allow you to interface with other libraries and frameworks.

Related:  REACT.JSWEB designsVariousReact.jsREACTjs

Learning React.js: Getting Started and Concepts # Introduction Today we are going to kick off the first installment in a new series of tutorials, Learning React, that will focus on becoming proficient and effective with Facebook’s React library. Before we start building anything meaningful, its important that we cover some base concepts first, so lets get this party started. Update 4/29/2016: This article has been updated for React v15

Background vectors, +37,000 free files in .AI, .EPS, .SVG format Striped black background 161.262 372 12 months ago Blue dotted background 147.358 328 1 year ago Green starburst background 63.369 118 1 year ago React and Vega: An Alternative Visualization Example The End Result The code used here will create two different react components, a line chart and a radial heat map using Vega, and use Redux to enable linked highlighting between the two charts when interacting with a single one, as demonstrated below: Why Vega? The cool thing about Vega is that when you’re done making a visualization with it, you’ve got a portable description of your vis that is essentially just a big JSON object. You can then use this same description in various different environments (e.g., on the web or some server-side application).

Tutorial We'll be building a simple but realistic comments box that you can drop into a blog, a basic version of the realtime comments offered by Disqus, LiveFyre or Facebook comments. We'll provide: A view of all of the commentsA form to submit a commentHooks for you to provide a custom backend It'll also have a few neat features: Optimistic commenting: comments appear in the list before they're saved on the server so it feels fast.Live updates: other users' comments are popped into the comment view in real time.Markdown formatting: users can use Markdown to format their text.

Introduction Front-end development moves forward fast. A good indication of this is the pace at which new technologies appear to the scene. React is one of these recent newcomers. Even though the technology itself is simple, there's a lot going on around it. The purpose of this book is to help you get started with React and provide understanding of the surrounding ecosystem so you know where to look. Our development setup is based on Webpack.

Mega Menus (Axure Tip #1) — Christopher Roosen Download my free, customizable mega menu widget for Axure 6.5. The Mega Menu - An Overview Dropdown ‘mega menus’ (otherwise known as ‘meta menus’ or ‘mega dropdowns’) are becoming increasingly common in the online world, particularly on sites with broad and deep information architecture. Paul Ford: What is Code? A computer is a clock with benefits. They all work the same, doing second-grade math, one step at a time: Tick, take a number and put it in box one. Tick, take another number, put it in box two.

Application Architecture for Building User Interfaces Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.

Tutorial: Intro To React - React Edit on GitHub What We're Building # Today, we're going to build an interactive tic-tac-toe game. We'll assume some familiarity with HTML and JavaScript but you should be able to follow along even if you haven't used them before. If you like, you can check out the final result here: Final Result.

Poemage Poemage Poemage is open source. Please check back periodically for updates.