path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
evanmac123/muirwoods
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
client/containers/Root.dev.js
codeskeptk/capital
import React from 'react'; import { Provider } from 'react-redux'; import App from './App'; import DevTools from './DevTools'; // TODO: Update Root.prod.js export default ({ store, }) => ( <Provider store={store}> <div> <App /> <DevTools /> </div> </Provider> );
src/PasswordManager.Web/Client/app/routes.js
SogetiUSA/PasswordManager
import React from 'react'; import {Route} from 'react-router'; import App from './components/App'; import Login from './components/Login'; import AddAccount from './components/AddAccount'; import PasswordTable from './components/PasswordTable'; export default ( <Route component={App}> <Route path='/' comp...
actor-apps/app-web/src/app/components/Install.react.js
sfshine/actor-platform
import React from 'react'; export default class Install extends React.Component { render() { return ( <section className="mobile-placeholder col-xs row center-xs middle-xs"> <div> <img alt="Actor messenger" className="logo" src="assets/img/logo.png" ...
src/index.js
bpugh/react-editable
import React from 'react' const EditableText = React.createClass({ propTypes: { onSubmit: React.PropTypes.func.isRequired, validator: React.PropTypes.func, enableEditing: React.PropTypes.bool, value: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number, ]) }, ...
app/containers/HomePage.js
agrant216/React-Electron-Mtg
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
src/containers/ForgotPassword/ForgotPassword.js
TackleboxBeta/betabox-seed
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import _ from 'lodash'; import Helmet from 'react-helmet'; import ForgotPasswordForm from 'components/ForgotPasswordForm/ForgotPasswordForm'; import * as authActions from 'redux/modules/auth'; import * a...
app/containers/Cards.js
wenwuwu/redux-restful-example
import React from 'react' import { connect } from 'react-redux' import Cards from '../components/Cards' export default connect( state => { return {cards: state.cards} } )(Cards)
src/components/App.js
cichy/redux-login
import React from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' class App extends React.Component { static propTypes = { store: PropTypes.object.isRequired, routes: PropTypes.object.isRequired, } shouldComponentUpd...
src/components/changelog-link.js
getinsomnia/insomnia.rest
import React from 'react'; import Link from './link'; const ChangelogLink = ({ children, frontmatter }) => { const app = frontmatter.app === 'com.insomnia.designer' ? 'designer' : 'core'; return ( <Link to={`/changelog/${app}/${frontmatter.slug}`}> {children || frontmatter.title} </Link> ); }; exp...
packages/material-ui-icons/legacy/SignalWifi2BarLockSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16h-1v6h7v-6h-1zm-1 0h-3v-1.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5V16z" /><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.0...
client/routes.js
andela-ieyo/docify
import React from 'react'; import { Route } from 'react-router'; import client from './utils/client'; import Home from './components/Home.jsx'; import SignUp from './components/SignUp.jsx'; import Login from './components/Login.jsx'; import store from './store/configureStore'; import { saveUser } from './actions/loginA...
src/components/RepoNoteList/RepoNoteList.js
Jac21/reponotesreact
import React from 'react'; import PropTypes from 'prop-types'; import { css } from 'glamor'; import RepoNote from '../RepoNote/RepoNote'; const header = css({ margin: `${0.5}em auto` }); const infoLabel = css({ position: 'absolute', transform: 'translate(0, 50%)' }); // Parent component for repo notes, maps ...
app/javascript/mastodon/features/report/thanks.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import Button from 'mastodon/components/button'; import { connect } from 'react-redux'; import { unfollowAccount, muteAccount, blockAccount, } f...
src/helpers/connectData.js
Shenseye/fccpinterest
import React, { Component } from 'react'; import hoistStatics from 'hoist-non-react-statics'; /* Note: When this decorator is used, it MUST be the first (outermost) decorator. Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods. */ export default function connectData(fetchData, fe...
src/collections/BootNavs/BootNavLink.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), getRef: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), disabled: PropTypes.bool, acti...
app/components/billing/BillingHeader.js
buildkite/frontend
import PropTypes from 'prop-types'; import React from 'react'; import Relay from 'react-relay/classic'; import classNames from 'classnames'; import Icon from 'app/components/shared/Icon'; import PageHeader from 'app/components/shared/PageHeader'; import TabControl from 'app/components/shared/TabControl'; class Billin...
until_201803/react/modern/example/src/components/MyForm.js
shofujimoto/examples
import React from 'react' export default class MyForm extends React.Component { constructor (props) { super(props) this.state = {value:''} } doChange (e) { const newValue = e.target.value this.setState({value: newValue}) } doSubmit (e) { window.alert('Input value is ' + this.state.value...
classic/src/scenes/mailboxes/src/Components/WaveboxWebView/WaveboxWebView.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import BrowserView from 'wbui/Guest/BrowserView' import { URL } from 'url' import { WAVEBOX_CAPTURE_URLS, WAVEBOX_CAPTURE_URL_HOSTNAMES } from 'shared/constants' import pkg from 'package.json' import WaveboxWebViewLoadbar from './WaveboxWebViewLoadbar' im...
src/svg-icons/action/settings-input-antenna.js
igorbt/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 ...
examples/src/Examples.js
sambernard/react-preload
import React from 'react'; import Preload from 'react-preload'; import Spinner from './Spinner'; const imgBase = 'https://picsum.photos/800/600?'; export class Example1 extends React.Component { _handleImageLoadError = (failedImages) => { this.setState({ preloadError: true, }); } ...
packages/mineral-ui-icons/src/IconAirlineSeatReclineExtra.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconAirlineSeatReclineExtra(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Ico...
react/features/chat/components/native/MessageRecipient.js
bgrozev/jitsi-meet
// @flow import React from 'react'; import { Text, TouchableHighlight, View } from 'react-native'; import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { translate } from '../../../base/i18n'; import { Icon, IconCancelSelection } from '../../../base/icons'; import { connect } from '../../../base/r...
ajax/libs/react-instantsearch/3.3.1/Dom.js
sashberd/cdnjs
/*! ReactInstantSearch 3.3.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
blueocean-material-icons/src/js/components/svg-icons/file/cloud-upload.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const FileCloudUpload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/...
packages/core/content-type-builder/admin/src/components/List/index.js
wistityhq/strapi
/** * * List * */ /* eslint-disable import/no-cycle */ import React from 'react'; import PropTypes from 'prop-types'; import { EmptyBodyTable, useTracking } from '@strapi/helper-plugin'; import { Box } from '@strapi/design-system/Box'; import { Button } from '@strapi/design-system/Button'; import { Typography } fr...
app/renderer/components/App.js
uetchy/Pen
import React from 'react' import Toolbar from './widgets/Toolbar.jsx' import Sidebar from './widgets/Sidebar.jsx' import Canvas from './widgets/Canvas.jsx' export default class Application extends React.Component { render() { return ( <> <Toolbar /> <Sidebar /> <Canvas /> </> ...
src/components/Book/index.js
zacfukuda/universal-app-react-router
import React from 'react' import { Switch } from 'react-router-dom' import { renderRoutes } from 'react-router-config' const Book = ({route}) => ( <Switch> {renderRoutes(route.routes)} </Switch> ) export default Book
app/components/Root.js
glassonion1/electron-react-redux-boilerplate
import React from 'react' import { connect, createStore } from 'react-redux' import net from 'net' import { increment, decrement, async_increment } from '../actions/counter' export default class Root extends React.Component { render() { return ( <div> <h1>Counter</h1> ...
src/SideNavItem.js
chris-gooley/react-materialize
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { UserView, UserShape } from './UserView'; class SideNavItem extends Component { render () { const { divider, subheader, userView, icon, href = '#!', waves, user = {}, children, ...props } = this.pro...
js/components/CalendarSegment.js
kilimondjaro/react-native-couchsurfing-app
// @flow import React from 'react'; import { Text, TouchableOpacity, StyleSheet } from 'react-native'; type Props = { title: string; date: string; value?: string; onPress?: (value: string) => void; } export default function CalendarSegment(props: Props) { const {title, date, onPress} = props; retur...
app/javascript/mastodon/features/directory/index.js
tootcafe/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'mastodon/components/column'; import ColumnHeader from 'mastodon/components/column...
src/react/LandingPage.js
laundree/laundree
// @flow import React from 'react' import { FormattedMessage } from 'react-intl' import SignUpUserForm from './SignUpForm' import ContactForm from './ContactForm' import { connect } from 'react-redux' import type { StateAddendum } from './types' import type { LocaleType } from '../locales/index' class SignUpForm exten...
app/components/app.js
escalant3/react-for-humans
import React from 'react'; import { Link } from 'react-router'; class App extends React.Component { render() { return ( <div> <h1>App</h1> <ul> <li><Link to="/about">About</Link></li> <li><Link to="/inbox">Inbox</Link></li> </ul> {this.props.children} ...
src/components/Posts.js
dtjv/dtjv.github.io
import React from 'react' import { Post, ShortPost } from './Post' export const Posts = ({ posts = [], short }) => { if (!posts.length) return null return ( <ul className="divide-y divide-gray-200"> {posts.map((post) => short ? ( <ShortPost key={post.slug} post={post} /> ) : (...
app/main.js
christianalfoni/cerebral-react-immutable-store
import React from 'react'; import Controller from 'controller'; const Decorator = Controller.Decorator; const controller = Controller({ list: ['foo'], foo: 'bar' }); controller.signal('test', function AddBar (args, state) { state.push('list', 'bar'); }); @Decorator({ foo: ['foo'] }) class App extends React....
node_modules/react-native/Libraries/Modal/Modal.js
RahulDesai92/PHR
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/list/selection/list.js
JabX/focus-components
// Dependencies import React from 'react'; import builder from 'focus-core/component/builder'; import types from 'focus-core/component/types'; import { reduce, isArray, find } from 'lodash'; //Add a ref to the props if the component is not pure add nothing in the other case. import { addRefToPropsIfNotPure, LINE } fr...
demo/src/examples/InfoHelper.js
TeselaGen/teselagen-react-components
import { Classes } from '@blueprintjs/core'; import React from 'react' import InfoHelper from '../../../src/InfoHelper' export default () => ( <div> Default: <br /> <InfoHelper content={ "Hey I'm some helpful info! And I'm some really long helpful info.. This should wrap lines" } ...
src/index.js
gbezyuk/redux-sandbox
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; import { APP_MOUNT_POINT } from './constants/app'; render(<App />, document.getElementById(APP_MOUNT_POINT));
assets/jqwidgets/demos/react/app/togglebutton/defaultfunctionality/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxToggleButton from '../../../jqwidgets-react/react_jqxtogglebutton.js'; class App extends React.Component { componentDidMount() { this.refs.myToggleButton.on('click', () => { let toggled = this.refs.myToggleButto...
src/modules/BootDropdown/BootDropdownItem.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules, omit } from '../../lib/' const propTypes = { children: PropTypes.node, active: PropTypes.bool, disabled: PropTypes.bool, divider: PropTypes.bool, tag: PropTypes.oneOfType([PropTypes.func, PropTy...
components/DemoPage.js
isogon/styled-mdl-website
import React from 'react' import styled from 'styled-components' import PropTypes from 'prop-types' import { shadow4dp, util, Button, Icon } from 'styled-mdl' import map from 'lodash/map' import Wrap from './Wrap' import Code from './Code' import SectionHeader from './SectionHeader' import ComponentTitle from './Compo...
src/containers/DashboardPage/DashboardPage.js
armaniExchange/work-genius
// Style import './_DashboardPage.css'; import bjImg from '../../assets/images/bj-group.jpg'; import tpImg from '../../assets/images/tp-group.jpg'; import sjImg from '../../assets/images/sj-group.jpg'; // React & Redux import React, { Component } from 'react'; class DashboardPage extends Component { render() { ret...
app/components/Toggle/index.js
AK33M/scalable-react
/** * * LocaleToggle * */ import React from 'react'; // import { FormattedMessage } from 'react-intl'; import styles from './styles.css'; import ToggleOption from '../ToggleOption'; function Toggle(props) { // eslint-disable-line react/prefer-stateless-function let content = (<option>--</option>); // If we hav...
src/containers/custom_modal.js
carlosfh87/KN_REACT_API
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { userSelected } from '../actions/index'; import Modal from 'react-bootstrap/lib/Modal'; import Button from 'react-bootstrap/lib/Button'; class CustomModal extends Component { constr...
src/App.js
shockry/editest
import React, { Component } from 'react'; import './css/App.css'; import Topbar from './components/Topbar'; import { setCanvasToBlob } from './utils/canvasToBlob'; class App extends Component { constructor(props) { super(props); this.toggleShowOriginal = this.toggleShowOriginal.bind(this); this.state = {c...
src/js/components/icons/base/AccessBraille.js
kylebyerly-hp/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...
docs/app/Examples/elements/Button/States/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ButtonStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Active' description='A ...
app/utils/injectSaga.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {function} saga A r...
resources/js/Admin/components/Form/TextField.js
DoSomething/northstar
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import TextInput from '../../../components/FormInput/TextInput'; /** * Text input field component for Admin UI. */ const TextField = ({ className, clearErrors, description, error, id, label, name, pla...
examples/forms-material-ui/src/components/forms-create-overlay/Layout.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import CodeExample from '../_common/CodeExample'; import CreateCardOverlayHook from './Hook'; import createCardOverlayHookCode from '!raw-loader!./Hook'; import { Card } from 'material-ui'; export default createReactClass({ displayName: 'L...
src/pages/paper/index.js
sunway-official/acm-admin
import React, { Component } from 'react'; import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons'; import { Subheader, IconButton } from 'material-ui'; import { Link } from 'react-router-dom'; import List from './list'; import { connect } from 'react-redux'; class Index extends Component { rend...
node_modules/react-bootstrap/es/ModalTitle.js
cmccandless/SolRFrontEnd
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/parser/demonhunter/havoc/modules/spells/Momentum.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; class Momentum extend...
src/bundles/Themes/scenes/ThemesScene/index.js
CharlesMangwa/Chloe
/* @flow */ import React from 'react' import ThemesContainer from '@Themes/containers/ThemesContainer' const ThemesScene = (): React$Element<any> => (<ThemesContainer />) export default ThemesScene
src/decorators/ListPreview/index.js
edulan/react-virtual-kanban
import React from 'react'; import * as propTypes from './propTypes'; import PureComponent from '../../PureComponent'; export default class ListPreview extends PureComponent { static propTypes = propTypes; render() { const { listId, listStyle, isGhost } = this.props; const { width, height } = listStyle; ...
client/admin/info/RuntimeEnvironmentSection.stories.js
Sing-Li/Rocket.Chat
import React from 'react'; import { RuntimeEnvironmentSection } from './RuntimeEnvironmentSection'; export default { title: 'admin/info/RuntimeEnvironmentSection', component: RuntimeEnvironmentSection, decorators: [ (fn) => <div className='rc-old'>{fn()}</div>, ], }; const statistics = { os: { type: 'statis...
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
yaoliyc/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/interface/icons/CriticalStrike.js
anom0ly/WoWAnalyzer
import React from 'react'; const icon = (props) => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" className="icon" {...props} > <circle cx="32.111" cy="32.678" r="2.989" /> <path d="M41.603,33.535l9.219-0.857l-9.219-0.857c-0.41-4.574-4.06-8.223-8.634-8.633...
app/javascript/mastodon/features/notifications/index.js
TheInventrix/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
examples/js/cell-edit/custom-cell-edit-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-alert: 0 */ /* eslint guard-for-in: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const currencies = [ 'USD', 'GBP', 'EUR' ]; const regions = [ 'North', 'South', 'East...
packages/material-ui-icons/src/LocalHospital.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LocalHospital = props => <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z" /> </SvgIcon>; LocalHospit...
src/shared/js/components/Sunburst.js
datalocale/dataviz-finances-gironde
import React from 'react'; import {pie as d3pie} from 'd3-shape'; import SunburstSlice from './SunburstSlice'; const DONUT_WIDTH = 45; const RADIUS = 80; /* interface SunburstProps<Element>{ hierarchicalData: HierarchicalData<Element> width: number height: number } // This data structure contains compu...
packages/type/examples/styled-components/src/index.js
carbon-design-system/carbon-components
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
app/javascript/mastodon/features/favourited_statuses/index.js
rutan/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
src/scenes/ProductView/index.web.js
Manuelandro/Universal-Commerce
import React from 'react' import { graphql, compose } from 'react-apollo' import { ProductViewQuery } from '../../../server/graphql/queries/product' import ProductView from './component.web' import { ScrollView } from '../../components/web/' const ProductViewWithData = (props) => ( <ScrollView> ...
presentation/index.js
coffee-cup/webpack-es7-presentation
// Import React import React from 'react'; // Import Spectacle Core tags import { Appear, BlockQuote, Cite, CodePane, Deck, Fill, Heading, Image, Layout, Link, ListItem, List, Quote, Slide, Spectacle, Text } from 'spectacle'; // Import image preloader util import preloader from 'specta...
src/Collapse.js
brynjagr/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import domUtils from './utils/domUtils'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import createChainedFunction from './utils/createChainedFunction'; let capitali...
examples/with-unstated/pages/index.js
BlancheXu/test
import React from 'react' import Link from 'next/link' import { Subscribe } from 'unstated' import { ClockContainer, CounterContainer } from '../containers' import { Clock, Counter } from '../components' class Index extends React.Component { componentWillUnmount () { clearInterval(this.timer) } render () { ...
09-animated-transitions/index.js
nodeyu/jason-react-router-demos-v4
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App/>, document.querySelector('#app') );
src/index.js
aldeste/WoopWap
import React from 'react'; import { render } from 'react-dom'; import './index.css'; import App from './App'; render(<App />, document.getElementById('app'));
app/components/Login.js
tempestaddepvc/proyecto-electron
import React from 'react'; import TextField from 'material-ui/TextField'; import FlatButton from 'material-ui/FlatButton'; import * as UserActions from '../actions/UserActions' export default class Header extends React.Component{ handleClickRegister(){ UserActions.register(this.refs.username.getValue(),this.re...
examples/universal/client.js
eraviart/redux
import 'babel-core/polyfill'; import React from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import App from './containers/App'; import counterApp from './reducers'; const initialState = window.__INITIAL_STATE__; const store = createStore(counterApp, initialState); const root...
monkey/monkey_island/cc/ui/src/components/ui-components/Checkbox.js
guardicore/monkey
import '../../styles/components/Checkbox.scss' import React from 'react'; class CheckboxComponent extends React.PureComponent { componentDidUpdate(prevProps) { if (this.props.checked !== prevProps.checked) { this.setState({checked: this.props.checked}); } } /* Parent component can pass a name a...
src/index.js
aisouard/sample-react-webrtc-chat
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store'; import App from './components/App'; const Root = () => ( <Provider store={configureStore()}> <App /> </Provider> ); ReactDOM.render(<Root />, document.getElementById('roo...
app/config/routes.js
PierreBtz/react-experiment
'use strict'; import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import Main from '../components/Main'; import Home from '../components/Home'; import PromptContainer from '../containers/PromptContainer'; const routes = ( <Router history={hashHistory}> <Route path='/' ...
src/components/concent/steps/Step3.js
golemfactory/golem-electron
import React from 'react'; import Lottie from 'react-lottie'; import animData from './../../../assets/anims/Concent02'; const defaultOptions = { loop: false, autoplay: true, animationData: animData, rendererSettings: { preserveAspectRatio: 'xMidYMid slice' } }; export default class Step3...
internals/templates/utils/injectSaga.js
react-boilerplate/react-boilerplate
import React from 'react'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { ReactReduxContext } from 'react-redux'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {funct...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-tree-list.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, Tools} from './../common/common.js'; import './tree-list.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin ], //@@viewOff:mixins //@@viewOn:statics static...
src/Label/Label.js
kmees/react-fabric
import React from 'react' import cx from 'classnames' import elementType from 'react-prop-types/lib/elementType' import invokeWhenNotDisabled from '../util/invokeWhenNotDisabled.js' import fabricComponent from '../fabricComponent' import style from './Label.scss' const Label = ({ children, componentClass: Compon...
SmartDemo/ReactComponent/node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
HarrisLee/React-Native-Express
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
src/svg-icons/editor/insert-invitation.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertInvitation = (props) => ( <SvgIcon {...props}> <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/> ...
docs/app/Examples/modules/Embed/Types/EmbedExampleYoutube.js
vageeshb/Semantic-UI-React
import React from 'react' import { Embed } from 'semantic-ui-react' const EmbedExampleYouTube = () => ( <Embed id='O6Xo21L0ybE' placeholder='http://semantic-ui.com/images/image-16by9.png' source='youtube' /> ) export default EmbedExampleYouTube
src/NoMatch/NoMatch.js
brz0/folio-v11
import React from 'react'; import {Link} from 'react-router'; import Nav from '../Nav/Nav.js'; import ErrorBot from '../img/ErrorBot-NotFound.svg'; import HomeBgLink from '../img/bg.png'; const HomeBg = {backgroundImage: 'url(' + HomeBgLink + ')'}; export default class NoMatch extends React.Component { render() { ...
test/resolve-mixin/components/always-load.js
Brogency/baobab-react-resolver
import React from 'react'; import { BranchMixin } from 'baobab-react-mixins'; import { ResolveMixin } from '../../../src'; export default React.createClass({ displayName: 'RootComponent', mixins: [BranchMixin, ResolveMixin], cursors: { user: ['user'], }, getResolverBindings() { r...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
jiguoling/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
packages/react/src/components/ProgressIndicator/ProgressIndicator.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classnames from 'classnames'; import { CheckmarkOutlin...
src/svg-icons/av/fiber-dvr.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberDvr = (props) => ( <SvgIcon {...props}> <path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8...
src/components/EditableChip.js
muchachada/crossword
import React from 'react' import Chip from 'react-toolbox/lib/chip' import styles from './EditableChip.scss' import { getWidth } from './dynamic-width' export default class EditableChip extends React.Component { constructor () { super() this.handleKeyDown = this.handleKeyDown.bind(this) this.handleChange...
src/svg-icons/device/battery-std.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryStd = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/> </SvgIcon> ); D...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
Bogala/create-react-app-awesome-ts
/** * 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'; function* load(limit) { let i = 1; while (i <= limit)...
client/src/components/user/SearchUser.js
FlevianK/cp2-document-management-system
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import Pagination from 'react-js-pagination'; import { UserList } from '../../containers'; import * as userAction from '../../actions/use...
src/pages/trend/index.js
eseom/Gitten
import React from 'react' import { Dimensions, RefreshControl, Text, TouchableHighlight, ListView, View, } from 'react-native' import { Navigation } from 'react-native-navigation' import { connect } from 'react-redux' import { iconsMap } from '../../utils/AppIcons' import { fetchTrends } from '../../redux/...
app/components/Admin/Brand/ListBrands/index.js
VineRelay/VineRelayStore
import React from 'react'; import { createFragmentContainer, graphql } from 'react-relay'; import PropTypes from 'prop-types'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table'; import RaisedButton from 'material-ui/RaisedButton'; const ListBran...
app/src/pages/CarouselWidgetPage/index.js
udacityalumni/alumni-client
import React from 'react'; import cssModules from 'react-css-modules'; import styles from './index.module.scss'; import { CarouselWidgetContainer } from 'containers'; const CarouselWidgetPage = () => ( <div className={styles.container}> <CarouselWidgetContainer /> </div> ); export default cssModules(CarouselW...
app/components/commons/FormContainer.js
restoko/restoko-desktop-app
import React, { Component } from 'react'; import style from './FormContainer.module.css'; export default class Form extends Component { componentDidMount() { componentHandler.upgradeDom(); } render() { const { children } = this.props; return ( <div className={style.for...
examples/relay-treasurehunt/js/components/App.js
Aweary/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
lib/shared/screens/admin/screens/schemas/screens/edit/index.js
relax/relax
import * as schemaActions from 'actions/schema'; import Component from 'components/component'; import bind from 'decorators/bind'; import React from 'react'; import PropTypes from 'prop-types'; import {bindActionCreators} from 'redux'; import {dataConnect} from 'relate-js'; import SchemaEdit from './components'; @dat...
front/app/app/rh-components/rh-Grid.js
nudoru/React-Starter-2-app
/* Flexbox grid https://github.com/kristoferjoseph/flexboxgrid */ import React from 'react'; export const Grid = ({children}) => { // className="fxgrid-container-fluid" return <div>{children}</div>; }; export const Row = ({children, modifier, className}) => { let cls = 'fxgrid-row'; if (modifier) { cl...