path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes/Home/components/HomeView.js
gribilly/react-redux-starter-kit
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
src/components/about.js
fiveinfinity/ic-crowdsale
import React from 'react'; import styles from '../stylesheets/about.css'; export const About = (props) => { return ( <div className={styles.about}> <div className={styles['top-line']}></div> <div className={styles['profile-wrapper']}> <img className={styles.picture} src="../../public/images/poppe.jpg" alt...
fields/types/location/LocationField.js
lojack/keystone
import _ from 'underscore'; import React from 'react'; import Field from '../Field'; import { Button, Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'LocationField', g...
packages/icons/src/md/editor/MonetizationOff.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdMonetizationOff(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M25 13.8c3.56 0 4.88 1.7 5 4.2h4.42c-.14-3.44-2.24-6.6-6.42-7.62V6h-6v4.32c-1.06.24-2.06.6-2.96 1.08l2.94 2.94c.82-.34 1.82-.54 3.02-.54zM10....
src/svg-icons/maps/local-activity.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalActivity = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z...
node_modules/react-select/examples/src/components/States.js
together-web-pj/together-web-pj
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; const STATES = require('../data/states'); var StatesField = createClass({ displayName: 'StatesField', propTypes: { label: PropTypes.string, searchable: PropTypes.bool, ...
src/client/index.js
ppiskay/universal-react-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from 'containers/App'; const rootEl = document.getElementById('app'); ReactDOM.render(<App />, rootEl);
src/parser/demonhunter/vengeance/modules/spells/ImmolationAura.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatThousands, formatDuration } from 'common/format'; import Stat...
src/svg-icons/content/backspace.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12...
src/components/Main.js
guiqide/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; import ImgFigure from './ImgFigureComponent'; // 获取图片相关信息, 当使用babel的语法加载json,有时会出问题 import imageDatasJson from '../data/imageDatas.json'; // let imageDatas = require('../data/imageDatas.json...
src/NavItem.js
bvasko/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
src/example/app/app.js
lighter-cd/ezui_react_one
import React, { Component } from 'react'; import {HashRouter as Router, Switch, Route} from 'react-router-dom'; import {ThemeProvider} from 'react-jss'; import {IconProvider } from '../../lib/components/icon'; import mobile_theme from './config/mobile_theme'; import gobal_fonts from './config/icon_fonts'; import Home ...
test/test_helper.js
yustudio/myTriangleRealty
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/svg-icons/maps/person-pin-circle.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPinCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0...
src/components/app/App.js
60frames/react-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { Link } from 'react-router'; import styles from 'components/app/App.css'; const DEFAULT_TITLE = '60fram.es React Boilerplate'; function App({ children }) { return ( <div className={styles.root}> <Helm...
src/js/components/icons/base/Inspect.js
odedre/grommet-final
/** * @description Inspect SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @pr...
src/routes/home/index.js
jayzabs/mediashakertest
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Home from './Home'; impo...
loveFish/wrappers/toml.js
fangzhou37/WebExperiment
import React from 'react' import toml from 'toml-js' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <h1>{data.title}</h1> <p>Raw view of toml file</p> ...
public/component/Main.js
sakivks/question_bank
import React from 'react'; import { amber900 } from 'material-ui/styles/colors'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; const styles = { container: {} }; const muiTheme = getMuiTheme({ palette: { accent1Color: amber900 } });...
app/components/Github/UserProfile.js
zhentian-wan/ReactApp
import React from 'react'; import Router from 'react-router'; //{this.props.username} username is getting from profile.js <UserProfile username={username} bio={this.state.bio}/> //profile.js is parent, UserProfile.js is child, the child receive the state from parent by props class UserProfile extends React.Component ...
src/components/Home.js
jmichelin/interview-frontend
/** * Created by jmichelin on 1/17/17. */ import React from 'react'; //body class Home extends React.Component { render() { return ( <div className="col-md-12"> <h1 className="text-center">Goals of the Interview</h1> <h2>To evaluate candidate's awareness of self contribution</h2> ...
client/index/components/fzf/index.js
sliwei/react16-koa2
import React from 'react'; import css from './fzf.scss' export default class Index extends React.Component { goIndex = () => this.props.history.push("/"); goBack = () => window.history.back(); render() { return <div className={css.bg}> <img className={css.rotating} src="https://i.bstu....
src/Tag.js
lenxeon/react-ui
import React from 'react' import classnames from 'classnames' import PropTypes from './utils/proptypes' import _styles from './styles/_tags.scss' export default function Tag (props) { const { pill, type, children, ...other } = props const className = classnames( _styles.tag, pill && _styles['tag-pill'], ...
src/packages/@ncigdc/routes/AuthRoute.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; const AuthRoute = connect(s => s.auth)( class extends React.Component { render() { let { component: Component, user, ...props } = this.props; return ( <Route ...
src/routes/SettingsDiagnostics/components/PrivacyPolicyInfo.js
liuyaoao/omnyiq-sc1-server-render
import React from 'react'; var PrivacyPolicyInfo = React.createClass({ onClickBackToDiagnostics:function(){ this.props.onClickBackToDiagnostics(); }, render:function(){ return( <div className='privacyPolicyInfoContent'> <article> <h1>Omny IQ Privacy Policy</h1> <p>Ef...
packages/blogs-example/client/components/scenes/Post.js
charlieschwabacher/gestalt
import React from 'react'; import Relay from 'react-relay'; import {Post} from '../shared'; function formatDate(dateString) { const d = new Date(dateString); return `${d.getMonth()} / ${d.getDate()} / ${d.getFullYear()}`; } export default Relay.createContainer( ({node: post}) => ( <div> <div style={{...
docs/src/app/components/pages/components/SelectField/ExampleDisabled.js
ngbrown/material-ui
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/Menu/MenuItem'; const SelectFieldExampleDisabled = () => ( <SelectField value={1} disabled={true}> <MenuItem value={1} primaryText="Never" /> <MenuItem value={2} primaryText="Every Night" /> </Se...
packages/starter-scripts/fixtures/kitchensink/template/src/features/syntax/AsyncAwait.js
chungchiehlun/create-starter-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; async function load() { return [ { id: 1, name: '1'...
jekyll-strapi-tutorial/api/admin/admin/src/components/HomePageBlock/index.js
strapi/strapi-examples
/** * * HomePageBlock * */ import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import styles from './styles.scss'; function HomePageBlock({ children, className }) { return ( <div className={cn( className, styles.homePageBlock, )} > ...
lib/containers/click-count.js
ryanbahniuk/isomorphic-app-boilerplate
'use strict' import React from 'react'; import ClickCount from '../components/click-count'; import store from '../store'; function extractNumClicks() { return store.getState().dataState.get('numClicks'); } const ClickCountContainer = React.createClass({ getInitialState: function() { return { numClicks:...
src/routes/about/index.js
TodoWishlist/TodoWishlist
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../compo...
src/server/index.js
therealedsheenan/contempo-auth
require('babel-register') import express from 'express' import React from 'react' import ReactDOMServer from 'react-dom/server' import { StaticRouter } from 'react-router' import _ from 'lodash' import fs from 'fs' const port = 8000 const baseTemplate = fs.readFileSync('./src/server/index.html') const template = _.te...
public/app/components/online-tab/tree-plugin.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import base from '../base/index'; import icons from '../icons'; import Facade from '../../services/facade'; function renderUsageIcon(plugin) { switch(plugin.usage) { case Facade.metadata.pluginUsage.driver: return ( <base.TooltipContainer tooltip="Hardware...
node_modules/react-router-dom/es/HashRouter.js
chenjic215/search-doctor
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/svg-icons/action/accessible.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessible = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19...
src/svg-icons/av/replay-5.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay5 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2...
src/components/topic/media/BrowseMediaContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import TopicMediaContainer from '../provider/TopicMediaCont...
src/index.js
varatep/anax-ui
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRedirect, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { Provider } from 'react-redux'; import * as actions from './actions'; import mainStore from './stor...
packages/reactor-tests/src/tests/props/UpdateClassName.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Button } from '@extjs/ext-react'; export default class UpdateClassName extends Component { state = { className: 'red' }; toggleClassName = () => { this.setState({ className: this.state.className === 'red' ? 'blue' : 'red' }) } render() { ...
server/ComponentSkeleton.js
p632-sp-2016/eDocLite
module.exports.header = "import React from 'react';\n\n" + "export default class Form extends React.Component {\n" + "\trender() {\n" + "\t\treturn (\n" + "\t\t\t<div>\n"; module.exports.footer = "\t\t\t</div>" + "\n\t\t);\n" + "\t}\n" + "}\n";
src/util/bugsnag.js
outoftime/learnpad
import Bugsnag from '@bugsnag/js'; import BugsnagPluginReact from '@bugsnag/plugin-react'; import React from 'react'; import config from '../config'; import {LoginState} from '../enums'; import {getCurrentProject} from '../selectors'; let store; export const bugsnagClient = Bugsnag.start({ apiKey: config.bugsnagA...
react-ui/src/components/GitHubList/GitHubList.js
hokustalkshow/find-popular
import React, { Component } from 'react'; import { connect } from 'react-redux'; import GitHubItem from '../GitHubItem/GitHubItem'; import Spinner from '../Spinner/Spinner'; import SpinnerOnly from '../Spinner/SpinnerOnly'; class GitHubList extends Component { displayButton = () => { if (!this.props.hideLoadMore) {...
src/svg-icons/maps/local-parking.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalParking = (props) => ( <SvgIcon {...props}> <path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/> </SvgIcon> ); MapsLocalParking = pure(MapsLocalParking...
web/src/components/download.js
frafra/is-osm-uptodate
import React from 'react'; const classNames = require('classnames'); function Download({ downloadLink }) { return ( <button id="download" className={classNames('btn', 'btn-primary', { disabled: !downloadLink })} type="button" href={downloadLink} > <i className="fas fa-arrow-alt...
src/Layout/Header.js
kondoSoft/react-car-rental
import React from 'react'; import Navigation from './Navigation'; import { Menu, Container } from 'semantic-ui-react' class Header extends React.Component { render() { return ( <header className="header"> <Container> <Menu secondary> <Menu.Item> <a className="...
components/Trips.js
zaragozamartin91/taller2SharedServer
import React from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton';...
src/pages/index.js
thevangelist/esajuhana-2018
import React from 'react' import Link from 'gatsby-link' import Helmet from 'react-helmet' import styled from 'styled-components'; const FacesLink = styled(Link)` display: block; margin-top: 3em; color: #ff3e55 !important; text-decoration: none !important; &:hover { text-decoration: underline !important;...
app/javascript/mastodon/features/reblogs/index.js
mstdn-jp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs } from '../../actions/interactions'; import { ScrollContainer } from ...
benchmarks/dom-comparison/src/implementations/react-native-web/Tweet/IconRetweet.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import { createElement } from 'react-native'; import React from 'react'; import styles from './styles'; const IconRetweet = props => createElement('svg', { children: ( <g> <path d="M70.676 36.644A3 3 0 0 0 68 35h-7V19a4 4 0 0 0-4-4H34a4 4 0 0 0 0 8h18a1 1 0 0 1...
docs/src/app/components/pages/components/Avatar/Page.js
mtsandeep/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import avatarReadmeText from './README'; import AvatarExampleSimple from './Exam...
example/src/index.js
pragmaticcoders/neutrino-preset-pragmatic-react
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Hello from './Hello'; const load = () => render( ( <AppContainer> <Hello name="World" /> </AppContainer> ), document.getElementById('root') ); if (module.hot) { module.hot.acc...
fluxible-router/components/Timestamp.js
ybbkrishna/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import updateTime from '../actions/updateTime'; import TimeStore from '../stores/TimeStore'; import { connectToStores } from 'fluxible-addons-react'; @connect...
src/svg-icons/image/filter-center-focus.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterCenterFocus = (props) => ( <SvgIcon {...props}> <path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9...
templates/rubix/rubix-bootstrap/src/DropdownHoverButton.js
jeffthemaximum/jeffline
import React from 'react'; import RDropdownButton from 'react-bootstrap/lib/DropdownButton'; import { DropdownHoverButtonHOC } from './DropdownButton'; @DropdownHoverButtonHOC export default class DropdownHoverButton extends React.Component { render() { return ( <RDropdownButton open={this.props.open} ...
resource/csdk/stack/samples/webos/com.example.app.iotivity/src/views/MainPanel.js
iotivity/iotivity
import React from 'react'; import kind from '@enact/core/kind'; import {Panel, Header} from '@enact/moonstone/Panels'; import Divider from '@enact/moonstone/Divider'; import Server from './Server'; import Client from './Client'; import {Layout, Cell} from '@enact/ui/Layout'; const MainPanel = kind({ name: 'Main...
admin/client/App/screens/Item/components/FormHeading.js
dvdcastro/keystone
import React from 'react'; import evalDependsOn from '../../../../../../fields/utils/evalDependsOn'; module.exports = React.createClass({ displayName: 'FormHeading', propTypes: { options: React.PropTypes.object, }, render () { if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) { re...
blueocean-material-icons/src/js/components/svg-icons/image/wb-iridescent.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageWbIridescent = (props) => ( <SvgIcon {...props}> <path d="M5 14.5h14v-6H5v6zM11 .55V3.5h2V.55h-2zm8.04 2.5l-1.79 1.79 1.41 1.41 1.8-1.79-1.42-1.41zM13 22.45V19.5h-2v2.95h2zm7.45-3.91l-1.8-1.79-1.41 1.41 1.79 1.8 1.42-1.42zM3.55 4.46l1.79 ...
src/containers/ColourPicker/HexForm.js
colouroscope/colouroscope
import React from 'react' import { connect } from 'react-redux' import { setHexColour, setPreviewColour } from '../../actions/index' import tinycolor from 'tinycolor2' const mapStateToProps = ({ picker }) => { return { hex: picker.hex } } const mapDispatchToProps = (dispatch) => { return { ...
local_modules/phi-nomenal-webapp/app/app.js
phi-nomenal/phi-nomenal
import React from 'react' import { render } from 'react-dom' import './app.css' class App extends React.Component { render () { return <div>{this.props.children}</div> } } App.propTypes = { children: React.PropTypes.object.isRequired } export default App
src/pages/Preferences/User/ChangePassword.js
Kitware/HPCCloud
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import get from 'mout/src/object/get'; import style from 'HPCCloudStyle/ItemEditor.mcss'; import ButtonBar from '../../../panels/ButtonBar'; import getNetworkError from '../../../utils/getNetworkError'; import * a...
app/components/Navigation/index.js
rjgreaves/finances
/** * * Navigation * */ import React from 'react'; import styles from './styles.css'; import AppBar from '../AppBar'; import Drawer from '../Drawer'; function Navigation({ newsletters, selectNewsletter, toggleDrawer, isDrawerOpen, user, logout }) { return ( <div className={styles.navigation}> <AppBar ...
js/components/Home.js
kishorevarma/nakiva.com
import React from 'react'; let Contact = React.createClass({ render: function() { return ( <div className="homeCont"> <div className="homePic"></div> <div className="homeCaption"> A FRONTEND DEVELOPER</div> </div> ); } }); export default Contact;
src/index.js
budaminof/scoreboard
// import Open from 'opn'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app'; // Open('http://localhost:8080'); ReactDOM.render( <App /> , document.querySelector('.container'));
examples/todos/index.js
paulkogel/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import todoApp from './reducers' import App from './components/App' let store = createStore(todoApp) render( <Provider store={store}> <App /> </Provid...
fixtures/ssr/src/index.js
anushreesubramani/react
import React from 'react'; import {hydrate} from 'react-dom'; import App from './components/App'; hydrate(<App assets={window.assetManifest} />, document);
packages/native/src/components/search/DataSearch.js
appbaseio/reactivesearch
import React, { Component } from 'react'; import { Platform, View, Modal, TouchableWithoutFeedback } from 'react-native'; import { Input, Item, List, ListItem, Text, Button, Header, Left, Right, Icon } from 'native-base'; import { addComponent, removeComponent, watchComponent, updateQuery, setQueryOptions, setQu...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
3846masa/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ clear: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }, }); class ClearColumnButton extends React.Component { static propTypes = { onC...
app/main.js
gottsohn/standort
import React from 'react'; import {Router, Route, browserHistory, IndexRoute} from 'react-router'; import {render} from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; im...
2-add-routing/src/layout/index.js
chemoish/react-universal-tutorial
import React from 'react'; import { Link } from 'react-router'; export default function Layout(props) { return ( <div> <header> <nav> <ul> <li> <Link to="/">Home</Link> </li> <li> <Link to="/about">About</Link> ...
app/components/PyxisComps/TierSystem/index.js
scribeklio/audora-io
/** * * TierSystem * */ import React from 'react'; import glamorous from 'glamorous'; const DetailGroup = glamorous.div({ display: 'flex', flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'space-between', margin: '1em 0', textAlign: 'center', alignItems: 'center', }) const StyledHeader = glam...
examples/custom-menu/app.js
marduke182/react-autocomplete
import React from 'react' import Autocomplete from '../../lib/index' import { getStates, matchStateToTerm, sortStates, styles, fakeRequest } from '../utils' let App = React.createClass({ getInitialState () { return { unitedStates: getStates(), loading: false } }, render () { return ( ...
src/svg-icons/editor/format-shapes.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatShapes = (props) => ( <SvgIcon {...props}> <path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-...
examples/src/Example.js
leoasis/react-sound
import React from 'react'; import Sound from 'react-sound'; import PlayerControls from './PlayerControls'; import SongSelector from './SongSelector'; import songs from './songs'; export default class Example extends React.Component { constructor(props) { super(props); this.state = { controlled: true, ...
examples/sidebar/app.js
aaron-goshine/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link } from 'react-router' import withExampleBasename from '../withExampleBasename' import data from './data' import './app.css' const Category = ({ children, params }) => { const category = data.lookupCategory(par...
src/components/DialogButton.js
jacklam718/react-native-dialog-component
// @flow import React from 'react'; import { StyleSheet } from 'react-native'; import { DialogButton as PopupDialogButton } from 'react-native-popup-dialog'; import type { DialogButtonType as PopupDialogButtonType } from 'react-native-popup-dialog'; const styles = StyleSheet.create({ textContainerStyle: { paddi...
src/views/dictionary/determinerd/DeterminerdTable.js
bostontrader/senmaker
// @flow import React from 'react' import DeterminerdRow from './DeterminerdRow' function DeterminerdTable(props:Object):?Object { let determinerdTable:?Object = null const sortedDeterminerds:Object = props.determinerd.getIn(['dict','coll']).sort((a,b)=>{ if (a.get('base') < b.get('base')) {return...
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
bensonX/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
src/components/CameraDialog.js
awentzonline/doppelchat
import React from 'react'; import {Dialog, FlatButton, Paper} from 'material-ui'; import PeerActions from 'peers/PeerActions'; import UserMediaActions from 'actions/UserMediaActions'; import UserVideoStream from 'components/UserVideoStream'; import UserMediaStore from 'stores/UserMediaStore'; import config from 'conf...
website/modules/components/EnvironmentHeader.js
d-oliveros/react-router
import React from 'react' import PropTypes from 'prop-types' import { Block, Row, Inline, Col } from 'jsxstyle' import { Link, Route } from 'react-router-dom' import { LIGHT_GRAY, RED } from '../Theme' import Logo from './Logo' const Tab = ({ to, ...rest }) => ( <Route path={to} children={({ match }) => ( <Block...
app/javascript/mastodon/features/ui/components/actions_modal.js
cybrespace/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
app/javascript/mastodon/features/compose/components/reply_indicator.js
im-in-space/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import { defineMessages, injec...
src/components/Action.js
RicardoG2016/WRFD-project-site
import React, { Component } from 'react'; import '../App.css'; import insta from '../images/logos/instagram.png'; import fb from '../images/logos/fb.png'; import tw from '../images/logos/twitter.png'; import yt from '../images/logos/youtube.png'; class Action extends Component { componentDidMount(){ window.sc...
app/containers/NotFoundPage/index.js
codekiln/beetimer
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
adamjmcgrath/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
examples/huge-apps/routes/Course/components/Dashboard.js
andreftavares/react-router
import React from 'react' class Dashboard extends React.Component { render() { return ( <div> <h3>Course Dashboard</h3> </div> ) } } export default Dashboard
src/components/molecules/FileCardHorizontal/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {Link, TitleSection,FileStatus} from 'components'; import {size, palette, font} from 'styled-theme'; import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card'; import {Grid, Row, Col} from 'react...
examples/complete/material/src/utils/router.js
prescottprue/react-redux-firebase
import React from 'react' import { Route } from 'react-router-dom' import { connectedRouterRedirect } from 'redux-auth-wrapper/history4/redirect' import locationHelperBuilder from 'redux-auth-wrapper/history4/locationHelper' import { createBrowserHistory } from 'history' import LoadingSpinner from 'components/LoadingSp...
src/index.js
rockyuse/react-webpack-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
node_modules/react-bootstrap/es/FormControlStatic.js
FoxMessenger/nyt-react
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/svg-icons/device/network-cell.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
docs/app/Examples/elements/Segment/Types/SegmentExampleSegment.js
koenvg/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleSegment = () => ( <Segment> Pellentesque habitant morbi tristique senectus. </Segment> ) export default SegmentExampleSegment
app/javascript/mastodon/features/account/components/header.js
Arukas/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Motion from '../../ui/util/optional_motion'; import sprin...
src/SideNav.js
15lyfromsaturn/react-materialize
import React from 'react'; import Icon from './Icon'; import idgen from './idgen'; class SideNav extends React.Component { constructor(props) { super(props); } render() { let id = `sidenav_${idgen()}`; return ( <nav> <ul className="right hide-on-med-and-down"> {this.props.ch...
src/containers/DevTools.js
Bartekus/r3
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor defaultIsVisible={ false } toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q"> <...
site/pages/HomePage.js
craigklem/react-dnd
import React from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import StaticHTMLBlock from '../components/StaticHTMLBlock'; import IndexHTML from '../../docs/index.md'; export default class HomePage { render() { return ( <div> <Header showCover ...
examples/test-cra/src/stories/index.js
enjoylife/storybook
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Button from './Button'; import Welcome fr...
src/app/routes.js
terribleplan/isomorphic-redux-plus
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import { About } from 'about'; import { ErrorPage } from 'error'; import { Todos } from 'todo'; import { loadAuth } from 'auth/actions'; import { isLoaded } from 'auth/selectors'; export default (store) => { const ...
components/BandImage/BandImage.js
bbailey-cando/agent11
import React from 'react'; import { Line } from 'rc-progress'; import { connect } from 'react-redux'; import actions from '../../core/actions'; var BandImage = React.createClass({ getInitialState() { return { image:this.props.image }; }, imageClicked(){ let el = document.getElementById('image-file'); ...
src/NavItem.js
azmenak/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/local-play.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalPlay = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4.42 4.8L12 14.5l-3.58 2.3 1.08-4.1...