background preloader


Facebook Twitter

Full-Stack Redux Tutorial. Update 2015-11-06: Updated to the new Babel 6 release.

Full-Stack Redux Tutorial

The Babel packages we need to install are now a bit different, and an additional "babel" section is needed in the package.json in both projects. Update 2015-10-09: Updated to React 0.14, React Router 1.0.0 RC3, and jsdom 6.x. The changes include: Learn React Online - A Guide. This one-page tutorial will quickly help you get a grasp of how React works, and if you're a hands-on type of person, you can code along with its starter kit.

Learn React Online - A Guide

Or, you can simply learn through reading the succinct tutorial. The tutorial won't teach you how to set up your environment, but it should nonetheless be quite helpful. Learn ReactJS from square one with this interactive tutorial, which is clearly inspired by the Ruby Koans project. All you have to do is fork this project, install Node.js and Python, run the setup and then you're good to go! Follow the practical exercises, and don't peek at the answers. Create a character voting app using React, Node.js, MongoDB and Socket.IO. Overview In this tutorial we are going to build a character voting app (inspired by Facemash and Hot or Not) for EVE Online - a massively multiplayer online game.

Create a character voting app using React, Node.js, MongoDB and Socket.IO

Be sure to play this awesome soundtrack below to get yourself in the mood for this epicly long tutorial. While listening to this soundtrack, imagine yourself mining asteroid belts in deep space while keeping a lookout for pirates on the radar, researching propulsion system blueprints at the station's facility, manufacturing spaceship components for capital ships, placing buy & sell orders on the entirely player-driven market where supply and demand govern the game economics, hauling trade goods from a remote solar system in a massive freighter, flying blazingly fast interceptors with a microwarpdrive or powerful battleships armored to the teeth, optimizing extraction efficiency of rare minerals from planets, or fighting large-scale battles with thousands of players from multiple alliances.

That's EVE Online. Source Code Note <! Заметки начинающего программиста. React Components. Making Your First Webapp with React. Nick Anastasov React has gained a lot of popularity recently and has attracted a large and active community.

Making Your First Webapp with React

This results in a vast wealth of reusable components for it that will save you time when coding. The library itself encourages writing loosely coupled code that is modular and composable. In this tutorial, I will show you how to create a small application and how to split it into discrete components that talk to each other. As a base, we will take the npm-driven website example from last month, but we’ll do it the React way. What you need to know about React It is a popular client-side library/framework for building user interfaces, which is developed and used by Facebook.With it, you organize your application around discrete components, with each handling its own rendering and state. What we will be building We will create a simple web app, which invites people to search for locations and to store them in their browsers’ localStorage.

Running the demo npm run watch Setting things up. Build with React JS. Egghead. I had no idea why I'd want to use Redux when I started this course.


This course really made it easy to understand the how & why of redux. Thanks Dan! Managing state in an application is critical, and is often done haphazardly. Redux provides a state container for JavaScript applications that will help your applications behave consistently. Redux is an evolution of the ideas presented by Facebook's Flux, avoiding the complexity found in Flux by looking to how applications are built with the Elm language. GeekBrains - образовательная площадка для программистов. Removing User Interface Complexity, or Why React is Awesome. I've been studying frameworks and libraries like Ember, Angular, and React the past several months, and given Web Components a lot of thought.

Removing User Interface Complexity, or Why React is Awesome

These all solve similar problems to varying degrees, and are in conflict in some ways and in harmony in others. I'm mostly concerned with the core problems of data binding and componentizing UIs. After much research and usage of the technologies mentioned above, I found React to provide the best solution. I ask that you set aside your framework prejudices and read this post with an open mind. This post is not to evangelize React specifically, but to explain why its technique is profound. This post actually started as a call to address problems with Web Components. The Bloop Library# Пишем игру на ReactJs с использованием webpack + react-hot-loader. После прослушивания 11-го выпуска подкаста RadioJS и прочтения статьи на хабре про webpack (система управления зависимости для JavaScript) решил попробовать написать что-нибудь простое и записать небольшое видео-скринкаст.

Пишем игру на ReactJs с использованием webpack + react-hot-loader

На тему связки webpack с моим любимым ReactJS есть отличный модуль react-hot-loader и статья по нему: Integrating JSX live reload into your React workflow — рекомендую к прочтению, там также есть видео! В репозитории react-hot-loader можно найти набор шаблонных проектов, так называемых Starter Kits. Взяв один из них за основу и, добавив к нему загрузчик css файлов, у меня получился свой шаблон проекта: Итого, работа выглядит следующим образом: Что не получилось: метод getInitialState() в React компонентах вызывается только один раз при инициализации, поэтому дальнейшие правки в коде никак не отображаются в браузере, нужна ручная перезагрузка страницы.

Видео рекомендую смотреть в Full HD с субтитрами: Понравилось это: Нравится Загрузка...