ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 52659bcaf0afc72028b79be0816ed5224fb8c39a
parent 103396b5df3e3f6eb1509ecca59a5439792bfc77
Author: Konstantin Tarkus <koistya@gmail.com>
Date:   Fri,  7 Aug 2015 12:47:43 +0300

Merge pull request #194 from solome/solome/updateDocs

update docs caused by `React Library` => `separate fbjs`.
Diffstat:
Mdocs/react-style-guide.md | 4++--
Mdocs/recipes/how-to-implement-routing.md | 2+-
Mdocs/recipes/how-to-integrate-disqus.md | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/react-style-guide.md b/docs/react-style-guide.md @@ -104,7 +104,7 @@ class SampleComponent extends Component { static propTypes = { ... }; static defaultProps = { ... }; - + constructor() { super(); this.state = { ... }; @@ -141,7 +141,7 @@ Put custom methods and properties at the bottom of the file, after the render() ```js // withViewport.js import React, { Component } from 'react'; -import { canUseDOM } from 'react/lib/ExecutionEnvironment'; +import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; function withViewport(ComposedComponent) { return class WithViewport extends Component { diff --git a/docs/recipes/how-to-implement-routing.md b/docs/recipes/how-to-implement-routing.md @@ -97,7 +97,7 @@ for matching URL paths to React components. ```js import React from 'react'; import Router from 'react-routing/src/Router'; -import http from './core/HttpClient'; +import http from './core/http'; import Layout from './components/Layout'; import ProductListing from './components/ProductListing'; import ProductInfo from './components/ProductInfo'; diff --git a/docs/recipes/how-to-integrate-disqus.md b/docs/recipes/how-to-integrate-disqus.md @@ -6,7 +6,7 @@ https://disqus.com/admin/create/ ```js import React, { PropTypes } from 'react'; -import { canUseDOM } from 'react/lib/ExecutionEnvironment'; +import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; const SHORTNAME = 'example'; const WEBSITE_URL = 'http://www.example.com';