path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/modules/Embed/Types/EmbedExampleVimeo.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Embed } from 'semantic-ui-react' const EmbedExampleVimeo = () => ( <Embed id='125292332' placeholder='http://semantic-ui.com/images/vimeo-example.jpg' source='vimeo' /> ) export default EmbedExampleVimeo
src/routes/Selection/components/Selection.js
jobdoc/selections-app
import React from 'react' import './Selection.scss' import zip from 'lodash/zip' import EditSelectionInfoForm from 'forms/EditSelectionInfo/EditSelectionInfoFormContainer' import { Card, CardActions, CardMedia, CardTitle, CardText } from 'material-ui/Card' import { Step, Stepper, StepLabel } from 'material-ui/Stepper' ...
jenkins-design-language/src/js/components/material-ui/svg-icons/social/plus-one.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialPlusOne = (props) => ( <SvgIcon {...props}> <path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/> </SvgIcon> ); SocialPlusOne.displayName = 'SocialPlusOne'; SocialPlusOne.muiName = 'SvgIcon'; export default SocialPlu...
src/components/Feedback/Feedback.js
ZhouHengYi/https---github.com-ZhouHengYi-RenRen_react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...
Rate.UI/app/components/AddReviewContainer.js
tanos90/Rate
import React from 'react'; import SearchFlick from './SearchFlick'; import FlickStore from "../stores/FlickStore"; import Movie from './Movie'; import ReviewActions from "../actions/ReviewActions"; import AddReview from "./AddReview"; export default class AddReviewContainer extends React.Component { constructor (...
app/javascript/mastodon/features/mutes/index.js
yi0713/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/form/DateTimeField.js
RelativeMedia/rm-frontend
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import {OverlayTrigger, Tooltip} from 'react-bootstrap' import DateTime from 'react-datetime' const DateTimeField = ({ tooltip, tooltipPlacement, disabled, input, label, placeholder, meta: {valid, touched, error} }) => { ...
app/components/Toggle/index.js
josh-butler/react-bp-demo
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
lib/shared/screens/admin/shared/components/page-builder-menu/tabs/index.js
relax/relax
import Component from 'components/component'; import React from 'react'; import PropTypes from 'prop-types'; import {setMenuTab} from 'actions/page-builder'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import elements from 'elements'; import Tabs from './tabs'; @connect( (state) =...
com/jessewarden/contacts/SearchResults.js
JesterXL/react-bootstrap-express-cassandra-contacts
import React from 'react'; import ReactDOM from 'react-dom'; import Button from 'react-bootstrap/lib/Button'; import ContactsModel from './models/ContactsModel'; import {Link, hashHistory} from 'react-router'; import EventBus from './EventBus'; class ContactList extends React.Component { constructor(props) { super...
src/Dialog/Dialog.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classnames from 'classnames'; import { ANIMATING, ROOT, OPEN, SURFACE, BACKDROP, SCROLL_LOCK, } from './constants'; class Dialog extends Component { static propTypes = { children: PropTypes.node, className: Prop...
admin/client/components/RelatedItemsList.js
pswoodworth/keystone
import React from 'react'; import Columns from '../columns'; import { Alert, Spinner } from 'elemental'; const RelatedItemsList = React.createClass({ propTypes: { list: React.PropTypes.object.isRequired, refList: React.PropTypes.object.isRequired, relatedItemId: React.PropTypes.string.isRequired, relationship...
docs/client/components/shared/NavBar/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './styles.css'; export default class NavBar extends Component { render() { return ( <div className={styles.pluginsWrapper}> <div className={styles.wideContainer}> <ul className={styles.plugi...
src/js/components/icons/base/Briefcase.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
JotunheimenPlaces/src/components/ButtonWhite.js
designrad/Jotunheimen-tracking
import React, { Component } from 'react'; import ReactNative from 'react-native'; const { StyleSheet, Text, View, TouchableOpacity } = ReactNative; /** * Button component */ export default class ButtonWhite extends Component { /** * Render a Button * @return {jsxresult} result in jsx format */...
src/svg-icons/action/settings-input-antenna.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputAntenna = (props) => ( <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ...
frontend/src/Movie/History/MovieHistoryTable.js
geogolem/Radarr
import React from 'react'; import MovieHistoryTableContentConnector from './MovieHistoryTableContentConnector'; function MovieHistoryTable(props) { const { ...otherProps } = props; return ( <MovieHistoryTableContentConnector {...otherProps} /> ); } MovieHistoryTable.propTypes = { }; export...
PushApp/common/LoginScreen.js
bit6/bit6-react-native-samples
import React from 'react'; import { View, TextInput, Button } from 'react-native'; import { AccessToken } from 'bit6'; import { MySession } from './MySession'; export class LoginScreen extends React.Component { static navigationOptions = { title: 'Bit6', }; constructor(props,context) { super(pr...
src/client/components/AdminPanel/Venues/New/index.js
mweslander/veery
// Imports import React, { Component } from 'react'; import PropTypes from 'prop-types'; // Components import VenueForm from '../../../Base/VenueForm'; import Button from '../../../Base/Button'; // CSS import './index.scss'; // Services import adminVenuesService from '../../../../services/admin/venues'; // Utils im...
examples/Example/pages/overrideRenderExample.js
thegamenicorus/react-native-timeline-listview
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Image } from 'react-native'; import Timeline from 'react-native-timeline-listview' export default class Example extends Component { constructor()...
src/blog/flux/views/pages/ArticleDetailPage.js
exseed/exseed-boilerplate
import React from 'react'; import connectToStores from 'alt-utils/lib/connectToStores'; import MenuLayout from '../layouts/MenuLayout'; import Widget from '../components/Widget'; import ArticleAction from '../../actions/ArticleAction'; import ArticleStore from '../../stores/ArticleStore'; @connectToStores export defau...
templates/rubix/demo/src/routes/Gallery.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Icon, Grid, Panel, Image, Table, Button, PanelBody, PanelHeader, PanelContainer, } from '@sketchpixy/rubix'; class GalleryItem extends React.Component { constructor(props) { super(props); this.state = { active: this.props.active || fa...
src/modules/Sidebar/SidebarPusher.js
shengnian/shengnian-ui-react
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly, } from '../../lib' /** * A pushable sub-component for Sidebar. */ function SidebarPusher(props) { const { className, di...
src/routes/Home/components/CommentList.js
nnti3n/YouTime
import React from 'react' import toStringTime from '../../../Helper/Helper' class CommentList extends React.Component { render () { const {commentList, commentClickHandler} = this.props return ( <div className='ViewBox-comments'> <ul> { commentList ? comment...
geonode/contrib/monitoring/frontend/src/components/molecules/max-response-time/index.js
ingenieroariel/geonode
import React from 'react'; import PropTypes from 'prop-types'; import CircularProgress from 'material-ui/CircularProgress'; import HoverPaper from '../../atoms/hover-paper'; import styles from './styles'; class MaxResponseTime extends React.Component { static propTypes = { time: PropTypes.number, } static ...
imports/ui/components/categories/MultiSelectCheckbox.js
hwillson/file-metadata-manager
import React, { Component } from 'react'; import { Form, Checkbox } from 'react-bootstrap'; import { updateCategoryMultiSelectSetting, } from '../../../api/categories/methods'; class MultiSelectCheckbox extends Component { constructor(props) { super(props); this.state = { checked: props.checked, ...
src/svg-icons/action/line-style.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLineStyle = (props) => ( <SvgIcon {...props}> <path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h...
frontendsrc/indexFourbyfour.js
nongaap/minimax
import React from 'react'; import { render } from 'react-dom'; import Fourbyfour from './components/Fourbyfour'; import './assets/images/favicon.ico'; import styles from './style/application.scss'; render( <Fourbyfour />, document.getElementById('root') );
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spr...
cmd/elwinator/src/components/Segment.js
foolusion/choices
import React from 'react'; import { isClaimed } from '../nsconv'; const Segment = ({ namespaceSegments, experimentSegments, cellSize, spacing, rows }) => { const cols = Math.ceil(128 / rows); const segs = new Array(128).fill(false); namespaceSegments.forEach((s, i) => { for (let idx = 0; idx < 8; idx++) { ...
content/gocms/src/admin/containers/adminPages/components/mainMenu/MainMenu.js
gocms-io/gocms
'use strict'; import React from 'react'; import {connect} from 'react-redux' import {logout} from '../../../../services/authentication' import {browserHistory} from 'react-router' class BasicComponent extends React.Component { constructor(props) { super(props); this.handleMenuOpenCloseClick = thi...
client/modules/users/components/.stories/friend_requests.js
kaibagoh/PitchSpot
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import FriendRequests from '../friend_requests.jsx'; storiesOf('users.FriendRequests', module) .add('default view', () => { return ( <FriendRequests /> ); })
examples/breadcrumbs/app.js
rubengrill/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' require('./app.css') const history = useBasename(createHistory)({ basename: '/breadcrumbs' }) class App extends React.Component { static title = 'Ho...
app/javascript/mastodon/components/media_gallery.js
tateisu/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
src/CollapsibleMixin.js
xiaoking/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import deprecationWarning from './utils/deprecationWarning'; const CollapsibleMixin = { propTypes: { defaultExpanded: React.PropTypes.bool, expanded: React.PropTypes.bool }, getInitialState() { const defaultExpanded...
StudyNotes/ReactNative_/component/message.js
coderZsq/coderZsq.target.swift
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image } from 'react-native'; var Message = React.createClass({ render(){ return ( <Text>message</Text> ) }, }); const styles = StyleSheet.create({ }); module.exports = Message
src/Nav.js
kishoreyarram/my-portfolio
import React, { Component } from 'react'; import { Link } from 'react-router'; class Nav extends Component { constructor(props) { super(props); this.state = { showNavBar: false, }; this.renderNav = this.renderNav.bind(this); this.onNavshow = this.onNavshow.bind(this); } onNavshow() { ...
src/components/splitPane/SplitPane.js
sanjay1909/WeaveReact
import React from 'react'; import ReactDOM from "react-dom"; import Style from "../../utils/Style"; import SplitPaneConfig from "./SplitPaneConfig"; import Pane from './Pane'; import Resizer from './Resizer'; //code logic taken from https://github.com/tomkp/react-split-pane class SplitPane extends React.Component { ...
src/client/auth/index.react.js
laxplaer/este
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import Login from './login.react'; import React from 'react'; export default class AuthIndex extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg} ...
app/components/main.js
tatsuhino/electron-react-redux-boilerplate
import React from 'react' import ReactDOM from 'react-dom'; import { Provider } from 'react-redux' import { createStore } from 'redux' import rootReducer from '../reducers/index.js' import Root from './Root.js' var TodoApp = React.createClass({ getInitialState: function(){ return { todos: [] } }, ...
src/containers/WeatherList.js
omarchacinortega13/react-redux-weather-map
import React from 'react'; import {connect} from 'react-redux'; import Chart from '../components/Chart'; import GoogleMap from '../components/GoogleMap'; class WeatherList extends React.Component { renderWeather(cityData) { const name = cityData.city.name; const temps = cityData.list.map((weather) => we...
packages/demos/todomvc/src/components/Footer/index.js
yusufsafak/cerebral
import React from 'react' import { connect } from 'cerebral/react' import { state, signal } from 'cerebral/tags' import counts from '../../computed/counts' import classnames from 'classnames' const filters = ['All', 'Active', 'Completed'] export default connect( { filter: state`filter`, counts, filterCl...
src/web/components/PatientView/index.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * Copyright 2017 Yuguan Xing * * 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 req...
src/pages/configurator/CreatePackageCategoryPage.js
belaczek/BeerCheese-client
import React, { Component } from 'react'; import { Row, Col, Button, Nav, NavItem, NavLink, NavbarBrand, } from 'reactstrap'; import ProductList from '../../components/product/ProductList'; import localizedTexts from '../../text_localization/LocalizedStrings'; import { connect } from 'react-redux'; import...
fields/types/date/DateFilter.js
asifiqbal84/keystone
import _ from 'underscore'; import classNames from 'classnames'; import React from 'react'; import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; const MODE_OPTIONS = [ { lab...
src/components/common/icons/Comment.js
WendellLiu/GoodJobShare
import React from 'react'; /* eslint-disable */ const Comment = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <path d="M137.990055,26.1850909 C131.387,18.1457182 122.417969,11.7956045 111.085273,7.13532273 C99.7528672,2.47561364 87.3720312,0.145186364 73.9471016,0.145186364 C63.933...
app/javascript/components/borrow_booking_calendar/DateInput.js
leihs/leihs_legacy
import React from 'react' import createReactClass from 'create-react-class' const DateInput = createReactClass({ displayName: 'DateInput ', propTypes: { }, getInitialState () { return { dateString: this.props.dateString } }, componentDidMount () { }, componentWillReceiveProps(nextProps...
docs/src/app/components/pages/components/Paper/Page.js
nathanmarks/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 paperReadmeText from './README'; import PaperExampleSimple from './Exampl...
src/components/popup/IndexComponent.js
Philin-Anton/prototypeApp
'use strict'; import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; require('styles/popup/Index.scss'); import FileChoose from '../FileChooseComponent'; import EditImage from '../EditImageComponent'; import EditLinkText from '../EditLinkTextComponent'; import {...
src/svg-icons/navigation/subdirectory-arrow-left.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowLeft = (props) => ( <SvgIcon {...props}> <path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"/> </SvgIcon> ); NavigationSubdirectoryArrowLeft = pure(Navigation...
src/components/Project.js
ZachShaw/portfolio-react
import React, { Component } from 'react'; import { Link, IndexLink } from 'react-router'; import '../styles/components/Project.scss'; class Project extends React.Component { constructor(props) { super(props); } componentWillMount() { } render() { return ( <Link className="project-flip" to={`...
ReactJS_Redux_CartApp/src/components/CartItem.js
canhphong/canhphong.github.io
import React, { Component } from 'react'; import * as Message from './../constants/Message'; class CartItem extends Component { render() { var { item } = this.props; var { quantity } = item; return ( <tr> <th scope="row"> <img src={item.product.image} alt=...
webapp/app/components/Notifications/Form/Groups/index.js
EIP-SAM/SAM-Solution-Server
// // Component groups form notifications // import React from 'react'; import { Col } from 'react-bootstrap'; import AllGroups from 'containers/Notifications/Form/Groups/AllGroups'; import SelectedGroups from 'containers/Notifications/Form/Groups/SelectedGroups'; import Buttons from 'containers/Notifications/Form/Gro...
app/modules/layout/components/Grid/index.js
anton-drobot/frontend-starter
import React from 'react'; import { observer } from 'mobx-react'; import { bem, mix } from 'app/libs/bem'; const b = bem('Grid'); function Grid(props) { const { className, children } = props; return ( <div className={mix(b(), className)}>{children}</div> ); } export default ...
node_modules/semantic-ui-react/src/views/Comment/CommentContent.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A comment can contain content. */ function CommentContent(props) { const { className, children } = props const classes = cx...
node_modules/rebass/src/Embed.js
HasanSa/hackathon
import React from 'react' import Base from './Base' /** * Responsive media embed wrapper */ const Embed = ({ ratio, children, ...props }, { rebass }) => { const childProps = { style: { position: 'absolute', width: '100%', height: '100%', top: 0, bottom: 0, left: 0, b...
src/javascripts/views/invoices/index.react.js
him0/nem-invoice
import React, { Component } from 'react'; export default class InvoicesIndex extends Component { constructor(props) { super(props); } static get propTypes() { return { } } static get defaultProps() { const initialProps = JSON.parse(document.getElementById('initial-data').getAttribute('dat...
src/RadioGroup.js
lenxeon/react-ui
import React from 'react' import classnames from 'classnames' import PropTypes from './utils/proptypes' import Fetch from './higherOrders/Fetch' import FormItem from './higherOrders/FormItem' import Radio from './Radio' import { compose } from './utils/compose' import TextValue from './higherOrders/TextValue' import S...
src/fluxtable/lib/Decorators.js
MirekSz/avem
/** * Created by Mirek on 2015-10-09. */ import React, { Component } from 'react'; var Perf = React.addons.Perf; export function observe(target) { target.prototype.addListenersToStore = function () { var listener = ()=> { this.setState(this.getData()); }; this.listener = list...
node_modules/react-bootstrap/es/Tab.js
chenjic215/search-doctor
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import PropTypes from 'pr...
src/index.js
dillonliang224/react-gallery
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/Thumbnail.js
jakubsikora/react-bootstrap
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const Thumbnail = React.createClass({ mixins: [BootstrapMixin], propTypes: { alt: React.PropTypes.string, href: React.PropTypes.string, src: React.PropTyp...
clients/privacy/components/FieldPrivacySettings.js
CalderaWP/Caldera-Forms
import React from 'react'; import PropTypes from 'prop-types'; import {FormGroup, FormControl, ControlLabel, HelpBlock, Panel, PanelGroup, Checkbox} from 'react-bootstrap'; import {IsEmailIdentifyingField} from "./IsEmailIdentifyingField"; import {IsPiiField} from "./IsPiiField"; /** * Privacy Settings for one field ...
examples/huge-apps/routes/Grades/components/Grades.js
Dodelkin/react-router
import React from 'react' class Grades extends React.Component { render() { return ( <div> <h2>Grades</h2> </div> ) } } export default Grades
src/components/LocationEdit.js
brianyamasaki/rideshare
import _ from 'lodash'; import React, { Component } from 'react'; import { ScrollView, Alert } from 'react-native'; import { connect } from 'react-redux'; import LocationForm from './LocationForm.js'; import { locationUpdate, locationUpdateAll, locationSave, locationDelete } from '../actions'; import { Card, CardSectio...
docs/client.js
Lucifier129/react-bootstrap
import CodeMirror from 'codemirror'; import 'codemirror/addon/runmode/runmode'; import 'codemirror/mode/htmlmixed/htmlmixed'; import './assets/javascript'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import React from 'react'; import ReactDOM from 'react-dom'; import {Router} from 'react-route...
src/components/Routes.js
daviddelusenet/reactjs-stat-tracker
import React from 'react'; import { Route, Link } from 'react-router-dom'; // import components import StatsTracker from './StatsTracker/StatsTracker'; import GameDetail from './GameDetail/GameDetail'; const GameDetailPage = (props) => { return( <GameDetail test="test" {...props} /> ); }; const Routes = ...
src/App/App.js
Baekwoo-s/EnactVoteApp
import kind from '@enact/core/kind'; import MoonstoneDecorator from '@enact/moonstone/MoonstoneDecorator'; import Panels from '@enact/moonstone/Panels'; import React from 'react'; import MainPanel from '../views/MainPanel'; import css from './App.less'; const App = kind({ name: 'App', styles: { css, className...
examples/pinterest/app.js
zipongo/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, IndexRoute, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/pinterest' }) const PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' ...
docs/src/app/components/pages/components/TimePicker/ExampleComplex.js
IsenrichO/mui-with-arrows
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; export default class TimePickerExampleComplex extends React.Component { constructor(props) { super(props); this.state = {value24: null, value12: null}; } handleChangeTimePicker24 = (event, date) => { this.setState({value24:...
src/docs/components/date-time/DateTimeExamplesDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import DateTime from 'grommet/components/DateTime'; import Form from 'grommet/components/Form'; import FormField from 'grommet/components/FormField'; import InteractiveExample from '../../../components/Intera...
src/svg-icons/device/signal-wifi-1-bar-lock.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
definitions/npm/react-addons-test-utils_v15.x.x/flow_v0.15.x-/react-addons-test-utils_v15.x.x.js
echenley/flow-typed
import React from 'react'; declare module 'react-addons-test-utils' { declare var Simulate: { [eventName: string]: (element: Element, eventData?: Object) => void; }; declare function renderIntoDocument(instance: React.Element<any>): React.Component; declare function mockComponent(componentClass: React.Elem...
src/popup/components/PackEdit/index.js
victorvoid/fluany
/** * @fileOverview A component to edit a specific package * @name index.js<PackEdit> * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import * as translator from 'shared/constants/internacionalization' import isNil fro...
app/javascript/mastodon/features/ui/components/column_header.js
5thfloor/ichiji-social
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, ...
src/components/icons/CheckmarkOutlineIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const CheckmarkOutlineIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100"> {props.title && <title>{props.title}</title>} <g transform="translate(-594.000000, -328.000000)"> <path d="M635.6,395.3l3.8,3.5l1,0.9l0.8-1.1l3-...
apps/marketplace/components/Teams/Flows/ChangeToTeamLeadMessage.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import styles from './TeamStages.scss' const ChangeToTeamLeadMessage = props => { const { name } = props return ( <div> <p> Are you sure you want to change <span className={styles.bold}>{name}</span> to a team lead? </p> <p>They will be able to add and remo...
sample/components/spinner.js
LINKIWI/react-elemental
import React from 'react'; import { Spacing, Spinner, Text, colors } from 'react-elemental'; const SampleSpinner = () => ( <div> <Spacing size="huge" bottom> <Text size="gamma" color="primary" uppercase> Spinners </Text> <Text> Spinners indicate indeterminate progress when there...
public/js/components/user_student.js
AC287/wdi_final_arrowlense2.0_FE
import React from 'react' import {Link} from 'react-router' import Firebase from 'firebase' import EditImgUrl from './user_img_edit.js' export default React.createClass({ contextTypes: { user: React.PropTypes.string, userinfo: React.PropTypes.object, router: React.PropTypes.object.isRequired, }, ren...
packages/material-ui-icons/src/IndeterminateCheckBox.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let IndeterminateCheckBox = 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-2 10H7v-2h10v2z" /> </SvgIcon>; IndeterminateCheckBox = pure...
codes/chapter05/react-router-v4/advanced/demo02/app/components/App.js
atlantis1024/react-step-by-step
import React from 'react'; import { Link } from 'react-router-dom'; class App extends React.PureComponent { render() { return ( <div> <h1>React Router Tutorial</h1> <ul role="nav"> <li><Link to="/about">关于</Link></li> <li><Link to="/topics">主题</Link></li> <li><...
notebook/book/ecmascript/JavaScript-Application-Design/practice/React/react-redux-webpack/lesson1/client/client.js
JMwill/wiki
import React from 'react'; import {render} from 'react-dom'; import App from '../components/App/app'; import configureStore from '../redux/store'; import { Provider } from 'react-redux'; let initialState = { todos: [ { id: 0, completed: false, text: 'Initial todo Item' ...
components/ParkingList.js
sophiatao/mhacksx
import React from 'react'; import {FlatList, Text, StyleSheet, View, TouchableOpacity} from 'react-native'; import { Col, Grid, Row } from "react-native-easy-grid"; const extractKey = ({id}) => id export default class ParkingList extends React.Component { resetMap(lat, long) { this.props.resetMap(lat, long) ...
app/containers/UGClientListing/index.js
perry-ugroop/ugroop-react-dup2
import React from 'react'; import { push } from 'react-router-redux'; // import backgroundPhoto from './assets/background-features.png'; // ************************************************************************ // Collection of styled-components for Client Listing in the homepage // ********************************...
src/geo-objects/Placemark.js
gribnoysup/react-yandex-maps
import React from 'react'; import PropTypes from 'prop-types'; import { withParentContext } from '../Context'; import withYMaps from '../withYMaps'; import { BaseGeoObject } from './BaseGeoObject'; export function Placemark(props) { return <BaseGeoObject {...props} name="Placemark" />; } if (process.env.NODE_ENV ...
src/components/app.js
MohammadHasham/Redux-YouOwn
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> {this.props.children} </div> ); } }
cm19/ReactJS/your-first-react-app-exercises-master/exercise-18/shared/Page.js
Brandon-J-Campbell/codemash
import React from 'react'; import classNames from 'classnames'; import ThemeContext from '../theme/context'; import styles from './Page.css'; export default function Page({ children }) { return ( <ThemeContext.Consumer> {({ theme }) => ( <div className={classNames(styles.page, styles[theme])}> ...
test/helpers/shallowRenderHelper.js
Aikk/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/Transition.js
coderstudy/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import classnames from 'classnames'; export const UNMOUNTED = 0; export const EXITED = 1; export const ENTERING = 2; export const ENTERED = 3; export const EXITING = 4; class Transition extends React.Component { constructor(props, c...
ui/src/components/group/AddGroup.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * 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 t...
src/Accordion.js
kwnccc/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
docs/src/CodeExample.js
HPate-Riptide/react-bootstrap
import React from 'react'; import ReactDOM from 'react-dom'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (Cod...
client/extensions/woocommerce/app/promotions/promotion-create.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { difference } from 'lodash'; import { localize } from 'i18n-calypso'; import page from 'page'; /** * Internal depe...
node_modules/babel-preset-react-hmre/test/Test.js
rajendrav5/webpack2.0
import React from 'react' export default class Test extends React.Component { render() { return ( <div>Winning?</div> ) } }
classic/src/scenes/wbfa/generated/FARServer.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faServer } from '@fortawesome/pro-regular-svg-icons/faServer' export default class FARServer extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faServer} />) } }
server/src/assets/javascripts/index.js
joe-re/automock
import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import App from './containers/app'; import reducers from './reducers'; import thunk from 'redux-thunk'; import logger from 'redux-logger'; const middleware = proc...
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/Contests/Contests.js
Zephyrrus/ubb
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity, Alert, ScrollView, FlatList, Button } from 'react-native'; import PropTypes from 'prop-types' import ContestComponent from './ContestComponent'; export default class Contests extends Component { static propT...
src/hooks/useFormElement.js
tannerlinsley/react-form
import React from 'react' // import { FormContextProvider } from './useFormContext' export default function useFormElement(contextValue) { const FormRef = React.useRef() const FormApiRef = React.useRef() FormApiRef.current = contextValue // Create a new form element if (!FormRef.current) { FormRef.cur...
client-app/src/album/CreateAlbumForm.js
mskorsur/music-app
import React from 'react'; import axios from 'axios'; import GenreFormItem from './GenreFormItem'; class CreateAlbumForm extends React.Component { constructor(props) { super(props); this.state = { name: '', artist: '', genres: [], releaseDate: new D...
packages/ringcentral-widgets/components/Switch/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.scss'; function Switch(props) { const onChange = props.onChange ? (e) => !props.disable && props.onChange(e.currentTarget.checked) : undefined; return ( <label title={p...