path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
renderer/components/Tab.js
reactide/reactide
import React from 'react'; import PropTypes from 'prop-types'; const { getFileExt, getCssClassByFileExt } = require('../../lib/file-tree.js'); const Tab = ({ name, isActive, setActiveTab, path, closeTab }) => { return ( <li className={"texteditor tab " + (isActive? "active" : "")} onClick={() => { setActiveTab(...
pages/one/One.js
mikayel/react-cv
'use strict'; import './One.css'; import React from 'react' import Header from '../../components/header/Header'; import Navigation from '../../components/navigation/Navigation'; import Footer from '../../components/footer/Footer'; const One = React.createClass({ contextTypes: { appState: React.PropTyp...
examples/FourPlayers.js
SBRK/react-gamepad
import React, { Component } from 'react'; import Gamepad from 'react-gamepad' class PlayerCube extends Component { constructor(props) { super(props) this.state = { speedX: 0.0, speedY: 0.0, x: props.x, y: props.y, connected: false, } } componentDidMount() { win...
src/components/stack/PreviewSidebar.js
rokka-io/rokka-dashboard
import React from 'react' import PropTypes from 'prop-types' import rokka from '../../rokka' import Alert from '../Alert' import Spinner from '../Spinner' const PreviewSidebar = ({ organization, onChange, previewImage = null, currentPreviewImage = null, error = null, imageLoading = false, stack = 'dynami...
src/svg-icons/av/high-quality.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHighQuality = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1....
app/javascript/mastodon/features/list_timeline/index.js
mimumemo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnBackButton from '../../co...
src/components/scene.js
poshaughnessy/react-three-demo
import React from 'react'; import ReactTHREE from 'react-three'; import THREE from 'three'; import Constants from '../constants'; import RobotRobbyComponent from './models/robotRobby'; import RobotMechComponent from './models/robotMech'; const ROBOT_ROBBY_Y = -25, ROBOT_MECH_Y = 0; class SceneComponent extends ...
generators/app/templates/src/config/initialize.js
127labs/generator-duxedo
import React from 'react' import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import configureStore from 'config/configure-store' export default (ComponentToInitialize) => () => { const store = configureStore({}) const history = syncHistoryWithStore(browserHistor...
src/svg-icons/navigation/chevron-left.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft = pure(NavigationChevronLeft); NavigationChevronLeft.dis...
client/components/TinyEditor.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import DomUtil from 'client/util/dom' import Util from '../util' import config from 'gen/config-client' import {openWindow} from '../util/window' const {DEFAULT_LANGUAGE} = config class TinyEditor extends React.Component { static instanceCounter = 0 ...
pwa/src/components/activities/editActivity.js
cmilfont/biohacking
import React from 'react'; import { connect } from 'react-redux' import { withStyles } from 'material-ui/styles'; import ExpansionPanel, { ExpansionPanelDetails, ExpansionPanelSummary, ExpansionPanelActions, } from 'material-ui/ExpansionPanel'; import { TimePicker } from 'material-ui-pickers' import Typography fr...
app/javascript/mastodon/features/ui/components/column_loading.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import Column from '../../../components/column'; import ColumnHeader from '../../../components/column_header'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class ColumnLoading extends ImmutablePureComponent { stat...
src/svg-icons/action/delete-forever.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
app/javascript/mastodon/components/autosuggest_input.js
maa123/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
src/svg-icons/editor/vertical-align-center.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
src/index.js
piaoyidage/gallery-by-react
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' import registerServiceWorker from './registerServiceWorker' ReactDOM.render(<App />, document.getElementById('root')) registerServiceWorker()
docs/app/Examples/modules/Dimmer/Usage/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DimmerStatesExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Dimmer Events' descript...
.storybook/PostEditorStories.js
buaya91/just-us-blog
import React from 'react' import { storiesOf, action } from '@kadira/storybook' import PostEditor from '../src/blogpost/editor/PostEditor' import { postDraft, actions } from './testProps' storiesOf('PostEditor', module) .add('', () => ( <PostEditor actions={actions} postDraft={postDraft} /> ))
until_201803/react/modern/router/src/index.js
shofujimoto/examples
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import MemberListApp from './MembersList' import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); ReactDOM.render(<MemberListApp />, document.getEl...
js/jqwidgets/jqwidgets-react/react_jqxtagcloud.js
luissancheza/sice
/* jQWidgets v5.3.2 (2017-Sep) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxTagCloud extends React.Component { componentDidMount() { let options = this.manageA...
app/containers/Store/CartButton.js
ryanwashburne/react-skeleton
// React import PropTypes from 'prop-types'; import React from 'react'; import { LinkContainer } from 'react-router-bootstrap'; // Redux import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as storeActions from 'app/reducers/storeReducer'; // UI import { IconMenu, MenuItem, Badg...
examples/todomvc/index.js
tamascsaba/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
es/Radio/Radio.js
uplevel-technology/material-ui-next
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; // weak import React from 'react'; import withStyles from ...
addons/themes/arcana/layouts/Single.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; let Home = React.createClass ({ componentDidMount(){ require('../assets/css/main....
src/parser/warlock/demonology/modules/talents/index.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import StatisticsListBox, { STATISTIC_ORDER } from 'interface/others/StatisticsListBox'; import Dreadlash from './Dreadlash'; import DemonicStrength from './DemonicStrength'; import BilescourgeBombers from './BilescourgeBombers'; import DemonicC...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
boyley/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
react/features/toolbar/components/AbstractToolbar.js
bickelj/jitsi-meet
import React, { Component } from 'react'; import { appNavigate } from '../../app'; import { toggleAudioMuted, toggleVideoMuted } from '../../base/media'; import { ColorPalette } from '../../base/styles'; import { styles } from './styles'; /** * Abstract (base) class for the conference toolbar. * * @abstra...
app/javascript/mastodon/features/compose/containers/warning_container.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Warning from '../components/warning'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { me } from '../../../initial_state'; const buildHashtagRE = () => { try { const HASHTAG_SEPARATORS = '_\\u00b7\...
pages/404.js
fmarcos83/mdocs
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Not Found</h1> <p>The pag...
src/kanban/components/KanbanBoardContainer.js
roybailey/research-react
import React, { Component } from 'react'; import {Container} from 'flux/utils'; import KanbanBoard from './KanbanBoard'; import CardActionCreators from '../actions/CardActionCreators'; import CardStore from '../stores/CardStore'; class KanbanBoardContainer extends Component { componentDidMount(){ CardActionCrea...
src/js/components/Grid/stories/Percentages.js
grommet/grommet
import React from 'react'; import { Box, Grid } from 'grommet'; export const Percentages = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Grid fill areas={[ { name: 'nav', start: [0, 0], end: [0, 0] }, { name: 'main', start: [1, 0], end: [1, 0]...
app/assets/scripts/components/partner-edit.js
ASL-19/civicdr
'use strict'; import React from 'react'; import formToObject from 'form-to-object'; import { notificationPrefs, notificationLang, secureChannels, typesOfWork, languages } from '../constants'; const ImplementingPartnerEdit = React.createClass({ displayName: 'ImplementingPartnerEdit', propTypes: { on...
src/components/Launcher/index.js
itsravenous/escape-the-board-room
import React from 'react'; import propTypes from 'prop-types'; import Button from '../Button'; import Pager from '../Pager'; import Ticker from '../Ticker'; import './style.css'; export default class Launcher extends React.Component { constructor(props) { super(props); this.state = { showNext: false, ...
powerauth-webflow/src/main/js/components/login.js
lime-company/powerauth-webflow
/* * Copyright 2016 Wultra s.r.o. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
src/Parser/Warlock/Affliction/Modules/Talents/Contagion.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/forma...
routes/Course/routes/Announcements/components/Announcements.js
kalmyk/calc-unit
import React from 'react' class Announcements extends React.Component { render() { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ) } } module.exports = Announcements
src/components/loaders/page/page-loader.js
vFujin/HearthLounge
import React from 'react'; import Loader from "../diamond/loader"; const PageLoader = ({isLoading, error}) => { if (isLoading) { return <Loader/>; } else if (error) { return <div>Sorry, there was a problem loading the page.</div>; } else { return null; } }; export default PageLoader;
src/index.js
antropoloops/looper
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import Sampler from './audio/sampler' import { reducer, log } from "./actions/reducer" import { actions, initialState } from "./actions" import './index.css'; const files = { Q: "A1_1", W: "A1_2", E: "B1_1", A: "B2_1", S: "D1_1",...
src/parser/monk/mistweaver/modules/talents/RisingMist.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/A...
src/components/Settings/index.js
nadavspi/UnwiseConnect
import * as togglActions from '../../actions/toggl'; import React, { Component } from 'react'; import Toggl from './Toggl'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { logout } from '../../actions/auth' class Settings extends Component { saveToggl = (apiKey) => { this...
src/Industry.js
synchon/react-biosummit-17
import React from 'react'; import Tiles from './Tiles'; const Industry = props => { return ( <section className="section animated fadeIn has-text-centered"> <Tiles data={['Agilent Technologies, Bengaluru','Anthem Biosciences Pvt. Ltd., Bengaluru','Biocon, Bengaluru']} /> <Tiles data={[...
src/components/Map/AddEcosystem.js
Angular-Toast/habitat
import React, { Component } from 'react'; import { View, TouchableOpacity, Image } from 'react-native'; export default class AddEcosystem extends Component { static navaigationOptions = { title: 'Choose your Ecosystem!' } render() { const { navigate } = this.props.navigation; return ( <View st...
index.ios.js
CaiHuan/react_native_zhihu_demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class react_native_zhihu_demo extends Component { render() { return ( <View style={styles.container}...
src/containers/Way.js
osoken/project-train-2016
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' let Way = ( {dispatch, way} ) => ( <div> <div> <div>出発地</div> <div>大岡山駅</div> </div> <img src="" alt=""/> <div> <div>目的地</div> <div>劇団四季(大井町駅)</div> </di...
docs/app/Examples/elements/Loader/index.js
shengnian/shengnian-ui-react
import React from 'react' import Types from './Types' import States from './States' import Variations from './Variations' const LoaderExamples = () => ( <div> <Types /> <States /> <Variations /> </div> ) export default LoaderExamples
MARVELous/client/src/js/components/login/loginForm.js
nicksenger/StackAttack2017
import React, { Component } from 'react'; export default class LoginForm extends Component { constructor(props) { super(props); this.state = { alias: '', password: '' }; this.handleSubmit = this.handleSubmit.bind(this); this.handleAliasChange = this.handleAliasChange.bind(this); t...
blueocean-material-icons/src/js/components/svg-icons/action/perm-phone-msg.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionPermPhoneMsg = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-...
src/components/todo/TodoForm.js
ldimitrov/todo_react
import React from 'react'; import PropTypes from 'prop-types'; export const TodoForm = (properties) => ( <form onSubmit={properties.handleSubmit}> <input type="text" onChange={properties.handleInputChange} value={properties.currentTodo} /> </form> ) TodoForm.propTypes = { c...
src/svg-icons/notification/do-not-disturb.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturb = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13...
src/svg-icons/social/notifications-active.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsActive = (props) => ( <SvgIcon {...props}> <path d="M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02...
javascripts/index.js
undefinerds/libris
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Route, IndexRoute, Router, hashHistory } from 'react-router'; import store, { history } from './store'; import routes from './routes'; render( <Provider store={store} history={history}> <Router history...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
jbbr/react-router
import React from 'react'; class Assignment extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignment: COURSES[params.courseId].assignments[params.assignmentId] //}); //} render () { //var { title, body } = this.props.assignment; var { courseId, assignmentId } ...
es6/DatePicker/basic/DateTable.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
components/base/image.js
dwest-teo/wattos-spaceship-emporium
import React from 'react'; import { Box } from 'axs'; const imageCss = { maxWidth: '100%', borderStyle: 'none' }; const Image = props => ( <Box is="img" {...props} css={imageCss} /> ); Image.displayName = 'Image'; export default Image;
examples/pinterest/app.js
dalexand/react-router
import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; var PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }, { id: 2, src: 'http://placekitten.com/620/620' } ]; var Modal = React.createClass({ styles: { posi...
src/ModalFooter.js
pandoraui/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalFooter extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalFooter....
docs/src/app/components/pages/components/GridList/Page.js
ruifortes/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 gridListReadmeText from './README'; import gridListExampleSimpleCode from...
example/src/Screens/Docs/AnimatedSwitch/example.js
maisano/react-router-transition
import React from 'react'; import { Route } from 'react-router-dom'; import { spring, AnimatedSwitch } from 'react-router-transition'; import A from './A'; import B from './B'; import C from './C'; // we need to map the `scale` prop we define below // to the transform style property function mapStyles(styles) { ret...
src/components/H/H1.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import get from 'extensions/themeGet'; import userSpacing from 'extensions/userSpacing'; import Skeleton from 'skeletons/Skeleton'; import H2 from './H2'; import H3 from './H3'; import H4 from './H4'; import H5 from ...
frontend/src/Components/FileBrowser/FileBrowserModalContent.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Alert from 'Components/Alert'; import PathInput from 'Components/Form/PathInput'; import Button from 'Components/Link/Button'; import Link from 'Components/Link/Link'; import LoadingIndicator from 'Com...
src/components/auction/board/RemoveBid.js
akeely/twoguysandadream-js
import React from 'react'; export default class RemoveBid extends React.Component { render() { return ( <a href="#" onClick={this.props.removeFunction}> <i className="fa fa-times-circle fa-lg" /> </a> ); }; };
src/website/app/demos/Dropdown/Dropdown/examples/placement.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import Button from '../../../../../../library/Button'; import Dropdown from '../../../../../../library/Dropdown'; import data from '../../../Menu/common/menuData'; import type { StyledComponent } from '@emotion/styled-base/src/utils'; const R...
react/reactRedux/redux-master/examples/todos/src/containers/AddTodo.js
huxinmin/PracticeMakesPerfect
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
integration/examples/react-reload/app/src/main.js
GoogleContainerTools/skaffold
import React from 'react'; import ReactDOM from 'react-dom'; import { HelloWorld } from './components/HelloWorld.js'; ReactDOM.render( < HelloWorld/>, document.getElementById( 'root' ) );
client/src/components/Header/components/UniversalNav.js
jonathanihm/freeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from '../../helpers'; import NavLogo from './NavLogo'; import SearchBar from '../../search/searchBar/SearchBar'; import MenuButton from './MenuButton'; import NavLinks from './NavLinks'; import './universalNav.css'; export const UniversalN...
src/svg-icons/image/looks-5.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks5 = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/> </SvgI...
src/index.js
DavidLGoldberg/voting-server-tutorial
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/Root'; import { createHistory } from 'history'; const history = createHistory(); ReactDOM.render( <Root history={history} />, document.getElementById('root') );
src/client/todos/index.react.js
skaldo/este
import Buttons from './buttons.react'; import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import NewTodo from './newtodo.react'; import React from 'react'; import ToCheck from './tocheck.react'; import Todos from './todos.react'; export default class TodosIndex ext...
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js
mmrtnz/material-ui
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; const LinearProgressExampleSimple = () => ( <LinearProgress mode="indeterminate" /> ); export default LinearProgressExampleSimple;
src/js/components/pending/pending.js
holloway/mahara-mobile
/*jshint esnext: true */ import React from 'react'; import MaharaBaseComponent from '../base.js'; import ExpandCollapse from '../expand-collapse/expand-collapse.js'; import StateStore from '../../state.js'; import {PENDING} from '../../constants.js'; import PendingItem from './pending-it...
docs/app/Examples/elements/Button/Types/ButtonExampleAnimated.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button, Icon } from 'semantic-ui-react' const ButtonExampleAnimated = () => ( <div> <Button animated> <Button.Content visible>Next</Button.Content> <Button.Content hidden> <Icon name='right arrow' /> </Button.Content> </Button> <Button animate...
src/docs/examples/RangeSlider/ExampleSingleRange.js
austinknight/ui-components
import React from 'react'; import RangeSlider from 'ui-components/RangeSlider'; /** Single Value Range Slider */ export default function ExampleSingleRange() { return <RangeSlider label="Pick a number" minValue={0} maxValue={100} onRangeUpdate={() => {}} /> }
main.js
ferologics/Sigilyfe
/** * Created by vadimdez on 09/02/16. */ import React from 'react'; import { render } from 'react-dom'; import store from './store'; import { Provider } from 'react-redux'; import './styles/main.scss'; import Game from './components/Game'; const renderer = () => { render( <Provider store={store}> ...
src/components/About/index.js
evandromacedo/evandromacedo.com
import React from 'react' import { Link, useStaticQuery, graphql } from 'gatsby' import Img from 'gatsby-image' import { BaseContent } from '../../styles/base' import * as S from './styled' const About = () => { const { meWithBeers } = useStaticQuery(graphql` query { meWithBeers: file(relativePath: { eq: "...
client/common/components/AppBarSubNavMenu.js
Haaarp/geo
import React from 'react'; import {Nav} from 'react-bootstrap'; class AppBarSubNavMenu extends React.Component{ render(){ return( <Nav className="sub-nav"> {this.props.children} </Nav> ); } } export default AppBarSubNavMenu;
components/Education.js
davidpham5/resume
import React from 'react' import { WorkExperience } from "./Work-Experience/WorkExperience"; const Education = () => { const { education } = WorkExperience; return ( <div className="mt-8 pl-10"> <h1 className="header font-serif text-4xl border-b mb-2"> {education.header} </h1> <div className...
src-client/modules/app/containers/ProxySetupModal/index.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
src/Home/SparkLines.js
Software-Eng-THU-2015/pacific-rim
import React, { Component } from 'react'; import ControllerChart from './Line'; import classNames from 'classnames'; var $ = jQuery = require('jquery'); import './Frame.css'; export default class SparkLines extends Component { constructor(props){ super(props); console.log(this.props.params.id); this.state =...
examples/with-firebase-functions/src/App.js
jaredpalmer/react-production-starter
import './App.css'; import React from 'react'; const App = () => <div>Welcome to Razzle.</div>; export default App;
src/Card/CollapsedHeader/CollapsedHeader.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; const CollapsedHeaderDriverFactory = ({element, wrapper, component}) => { const title = element.querySelector('[data-hook="title"]'); const subtitle = element.querySelector('[data-hook="subtitle"]'); return { exists: () => !!element, title: (...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js
mangomint/create-react-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 from 'react'; import { abstract } from './assets/abstract.json'; export default () => <summary id="feature-json-inclusion"...
src/Mailman.Server/ClientApp/src/components/merge-template/InfoCard.js
coe-google-apps-support/Mailman
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import Paper from '@material-ui/core/Paper' import MailIcon from '@material-ui/icons/Mail' import Typography from '@material-ui/core/Typography' import List from '@material-ui/core/List' import ListItem fr...
js/containers/favorites.js
bengaara/simbapp
import React, { Component } from 'react'; import { StatusBar } from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base'; import { openDrawer } from '../actions/drawer'; import styles from '...
src/index.js
awkaiser/react-tictactoe
import React from 'react'; import ReactDOM from 'react-dom'; import * as serviceWorker from './serviceWorker'; import App from './components/App'; // TODO: Switch to Concurrent Mode with future React release ReactDOM.render(<App />, document.getElementById('tictactoe')); serviceWorker.register();
20161216/cnode/app/HomePage.js
fengnovo/react-native
import React from 'react'; import { Text, View, ScrollView, Image, RefreshControl, TouchableHighlight, StyleSheet } from 'react-native'; import Detail from './Detail'; class HomePage extends React.Component { constructor(props) { super(props); this.state = { lists: [] } // this._onScr...
app/components/layout.js
ndnhat/te-starter
'use strict'; import React from 'react'; import { RouteHandler } from 'react-router'; import Header from './shared/header'; import Footer from './shared/footer'; class Layout extends React.Component { constructor(props) { super(props); this._onAuth = this._onAuth.bind(this); this._onUser = this._onUser.bind(thi...
exemplos/ExemploCarousel.js
vitoralvesdev/react-native-componentes
import React, { Component } from 'react'; import { View, StyleSheet, Dimensions } from 'react-native'; import { Carousel } from 'react-native-componentes'; const { width, height } = Dimensions.get('window'); export default class ExemploCarousel extends Component { render() { return( ...
src/svg-icons/action/accessible.js
kasra-co/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...
js/ui/ProductsList.js
ahoak/react-cookie-app
import React from 'react' import PropTypes from 'prop-types' const ProductsList = ({ title, children }) => ( <div> <div className="menuHeader"> <h1 className='menuPanel'><strong>{title}</strong></h1> </div> <div>{children}</div> </div> ); ProductsList.propTypes = { children: PropTypes.node, ...
examples/simple/components/App.js
lucasterra/react-custom-scrollbars
import random from 'lodash/number/random'; import React, { Component } from 'react'; import { Scrollbars } from 'react-custom-scrollbars'; function getRandomSize() { return { height: random(300, 500), width: random(50, 100) + '%' }; } export default class App extends Component { construct...
src/Row.js
modulexcite/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { re...
eventkit_cloud/ui/static/ui/app/components/Notification/NotificationsDropdown.js
terranodo/eventkit-cloud
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { withTheme } from '@material-ui/core/styles'; import withWidth, { isWidthUp } from '@material-ui/core/withWidth'; import CircularProgress from '@material-ui/core/CircularProgress'; import ClickAwayListener from...
src/core/router/index.js
dilansri/smart-note-taker
import React from 'react' import { Route, Router, IndexRoute, hashHistory} from 'react-router' import firebase from '../firebase' import App from '../../views/app-container' import Login from '../../views/containers/login' const requireLogin = (nextState,replace,next) => { console.log('require login middleware inv...
example/src/internal-state.js
Julusian/react-bootstrap-switch
import React from 'react'; import { Col, Button, ButtonGroup, FormGroup } from 'react-bootstrap'; import Switch from '../../src/js/index'; export class InternalState extends React.Component { _clickToggle(){ const val = this.switch.value(); this.switch.value(!val); } _clickOn(){ this.switch.value(...
meteor/imports/ui/components/ChartTags.js
globeandmail/chart-tool
import React, { Component } from 'react'; import { Meteor } from 'meteor/meteor'; import slug from 'slug'; import Tags from '../../api/Tags/Tags'; import { Creatable as Select } from 'react-select'; import { withTracker } from 'meteor/react-meteor-data'; import { arrayDiff } from '../../modules/utils'; class ChartTags...
src/components/Main.js
benawad/nukool
import React from 'react'; const Main = React.createClass({ render() { return ( <div> {React.cloneElement(this.props.children, this.props)} </div> ) } }); export default Main;
app/addons/components/header-breadcrumbs.js
apache/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
stories/components/donate/index.js
tal87/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import Donate from 'shared/components/donate/donate'; storiesOf('shared/components/donate', module) .add('Default', () => ( <Donate /> ));
Rosa_Madeira/Cliente/src/components/common/RefreshIcon.js
victorditadi/IQApp
import React, { Component } from 'react'; import { Text, TouchableOpacity } from 'react-native'; import { Icon } from 'native-base'; const RefreshIcon = () => { return ( <TouchableOpacity> <Icon name='ios-mail' style={Styles.iconStyle}/> </TouchableOpacity> ) } const Styles = { i...
app/detail/Detail.js
ccfcheng/recommendation-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import {Card, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; class DetailContainer extends Component { constructor(props) { super(props); this.state = { expanded: false, }; this.handleExpandCh...