This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { Card, Navigation } from 'react-router-navigation' | |
import App from '@scenes/App' | |
import Auth from '@scenes/Auth' | |
import Launch from '@scenes/Launch' | |
import Welcome from '@scenes/Welcome' | |
const Root = () => ( | |
<Navigation hideNavBar> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function objectEquals(x, y) { | |
'use strict'; | |
if (x === null || x === undefined || y === null || y === undefined) { return x === y; } | |
// after this just checking type of one would be enough | |
if (x.constructor !== y.constructor) { return false; } | |
// if they are functions, they should exactly refer to same one (because of closures) | |
if (x instanceof Function) { return x === y; } | |
// if they are regexps, they should exactly refer to same one (it is hard to better equality check on current ES) | |
if (x instanceof RegExp) { return x === y; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { Router, Route, Link } from 'react-router' | |
const App = React.createClass({/*...*/}) | |
const About = React.createClass({/*...*/}) | |
// etc. | |
const Users = React.createClass({ | |
render() { | |
return ( |
NewerOlder