This file contains 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 invariant from 'invariant'; | |
import React from 'react'; | |
import BaseRoute from 'react-router/lib/Route'; | |
import LoadingIndicator from './LoadingIndicator'; | |
// This is not a component. | |
/* eslint-disable react/prop-types */ | |
function render({ props, element }) { | |
if (!props) { |
This file contains 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
const Benchmark = require('benchmark'); | |
const _ = require('lodash'); | |
const props = { | |
className: 'foo', | |
onClick: () => null, | |
children: 'bar', | |
style: { top: 10 }, | |
relay: {}, | |
intl: {}, |
This file contains 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
class Post { | |
static Resource = HttpResource; | |
static resourceConfig = { endpoint: '/posts' }; | |
@field({ required: true })) | |
title = 'untitled'; | |
@field() | |
text = ''; |
NewerOlder