path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/forms-material-ui/src/components/forms-update-wizard-generic/Layout.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import CodeExample from '../_common/CodeExample'; import PayloadStates from '../../constants/PayloadStates'; import Hook from './Hook'; import hookCode from '!raw-loader!./Hook'; import { Card } from 'mater...
app/static/src/performer/RepairNotesList.js
SnowBeaver/Vision
import React from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Accordion from 'react-bootstrap/lib/Accordion'; import {Link} from 'react-router'; import Table from 'react-bootstrap/lib/Table'; import {NotificationContainer, NotificationManager} from 'react-notifications'; import {DATETIME_FORMAT} from...
samples/react-redux-patient-demographics-example/src/common/FormsyMaskedInput.js
GoTeamEpsilon/angular-to-react
import React from 'react' import Formsy from 'formsy-react' import MaskedInput from 'react-text-mask' export const FormsyMaskedInput = React.createClass({ mixins: [Formsy.Mixin], sanitize(value) { if (this.props.sanitizationFunction) { return this.props.sanitizationFunction(value) } return valu...
react-boilerplate/app/containers/HomePage/index.js
Sakuyakun/Yorha-Experiment
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import injectReducer from 'utils/injectReducer'; import injectSaga from 'utils/inject...
src/interface/report/Results/Timeline/Buffs.js
anom0ly/WoWAnalyzer
import { Trans } from '@lingui/macro'; import { formatDuration } from 'common/format'; import Icon from 'interface/Icon'; import SpellLink from 'interface/SpellLink'; import Tooltip from 'interface/Tooltip'; import { EventType } from 'parser/core/Events'; import BuffsModule from 'parser/core/modules/Buffs'; import Prop...
src/store.js
drifterz28/sprinkler
import React from 'react'; import {createStore, combineReducers, compose, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import { reducer as formReducer } from 'redux-form'; import {zones, status, saving} from './reducer'; const middleware = [thunkMiddleware]; const composeEnhancers = wind...
src/components/discover/exam-detail/view/ExamDetailBack.js
phodal/growth-ng
import React, { Component } from 'react'; import { View } from 'react-native'; import { Actions } from 'react-native-router-flux'; import { Button } from 'react-native-elements'; class ExamDetailBack extends Component { static componentName = 'ExamDetailBack'; render() { return ( <View style={{ height: 4...
src/components/NewUser/NewUser.js
jonrtroy/taco-frontend
import React, { Component } from 'react'; import update from 'react-addons-update'; import { Link } from 'react-router'; class NewUser extends Component { constructor(props) { super(props); this.state = { user: {} }; } handleChange(event) { let newState = update(this.state, { user: ...
src/main/scripts/modules/sea-siege/react/views/card/oracle.js
twuni/sea-siege
import React from 'react'; import Component from '../../components/component'; const {element, oneOfType, string} = React.PropTypes; class Oracle extends Component { static get propTypes() { return Component.withPropTypes({ description: oneOfType([ string, element ]), quote: ...
examples/js/style/tr-class-string-table.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
node_modules/react-router/es/Route.js
vitorgomateus/NotifyMe
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.string, func = _React$PropTypes.func; /** * A <Route> is use...
js/src/dapps/tokenreg/Accounts/AccountSelector/container.js
kushti/mpt
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
app/main.js
ellheat/exercise-6-redux
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import React from 'react'; import ReactDOM from 'react-dom'; // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import { AppContainer } from 'react-hot-load...
src/components/Html.js
bobbybeckner/ha-catalyst-test
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
app/javascript/mastodon/features/compose/components/reply_indicator.js
summoners-riftodon/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import { defineMessages, injec...
examples/src/components/CustomComponents.js
mmpro/react-select
import React from 'react'; import Select from 'react-select'; import Gravatar from 'react-gravatar'; const USERS = require('../data/users'); const GRAVATAR_SIZE = 15; const GravatarOption = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, isDisabled: React.Pro...
front/app/js/components/Introduction.js
nudoru/learning-map
import React from 'react'; const Introduction = ({text, instructions, newOrUpdated}) => { const neworupdatedList = newOrUpdated.length ? ( <div><h2>What's new and updated</h2><ul className="introduction-list-newcontent"> { newOrUpdated.map(title => <li>{title}</li>) } </ul></div...
src/pages/Daily/Daily.js
Minishlink/DailyScrum
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { StyleSheet, View, Animated } from 'react-native'; import SplashScreen from 'react-native-splash-screen'; import { isEqual } from 'lodash'; import { Page, NoProjectFound } from '../../components'; import { fetchBaseData } ...
src/AffixMixin.js
adampickeral/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; const AffixMixin = { propTypes: { offset: React.PropTypes.number, offsetTop: React.PropTypes.number, offsetBottom: React.PropTypes.number }, getInitialState() { return { a...
src/components/TouchNumberInput.js
Charlie9830/pounder
import React, { Component } from 'react'; import IncreaseIcon from '@material-ui/icons/AddCircleOutline'; import DecreaseIcon from '@material-ui/icons/RemoveCircleOutline'; import { IconButton, Typography } from '@material-ui/core'; let grid = { display: 'grid', width: '100%', gridTemplateColumns: '[Decrea...
app/components/H3/index.js
mhoffman/CatAppBrowser
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
js/components/HomePage/Header.react.js
ryantang333/react-boilerplate-test
import React, { Component } from 'react'; import { connect } from 'react-redux'; const Header = ({ projectName, ownerName }) => ( <h2> This is the demo for the <span className="home__text--red">{projectName} by </span> <a href={'https://twitter.com/' + ownerName}>@{ownerName}</a> </h2> ); const mapStateToPr...
examples/simple/components/App.js
volkanunsal/folio
/*globals L*/ /*eslint no-script-url: 0*/ import React, { Component } from 'react'; import Folio from 'folio'; import {LMap} from 'folio/adapters'; import LTile from 'folio/adapters/L/Tile'; import LMarker from 'folio/adapters/L/Marker'; import LControl from 'folio/adapters/L/Control'; import LCircle from 'folio/adapte...
app/javascript/mastodon/components/setting_text.js
kagucho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
src/SelectOption.js
ship-components/react-select
/** **************************************************************************** * SelectOption * * @author Isaac Suttell <isaac_suttell@playstation.sony.com> * @file Render an option for a dropdown list * @flow ******************************************************************************/ 'use str...
src/components/molecules/IconLink/index.stories.js
SIB-Colombia/dataportal_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import { IconLink } from 'components' storiesOf('IconLink', module) .add('default', () => ( <IconLink icon="close" href="#">Hello</IconLink> )) .add('right', () => ( <IconLink icon="close" href="#" right>Hello</IconLink> )) .add(...
example/src/components/Link/Link.js
Tom910/react-async-loading
import React from 'react'; export default ({ children, href }) => <a href={href}>{children}</a>
src/static/containers/Posts/index.js
spiskommg/mm-v2
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import * as actionCreators from '../../actions/data'; class Posts extends React.Component { static propTypes = { isFetching: PropTypes.bool.isRequired, ...
src/clincoded/static/libs/bootstrap/contextual_help.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; export function ContextualHelp(props) { return ( <span className="text-info contextual-help" data-toggle="tooltip" data-placement="top" data-tooltip={props.content}> <i className="icon icon-info-circle"></i> </span> ); }
examples/real-world/index.js
andreieftimie/redux
import 'babel-core/polyfill'; import React from 'react'; import { render } from 'react-dom'; import Root from './containers/Root'; import configureStore from './store/configureStore'; const store = configureStore(); render( <Root store={store} />, document.getElementById('root') );
src/routes/app.js
shaohuawang2015/goldbeans-admin
import React from 'react' import PropTypes from 'prop-types' import pathToRegexp from 'path-to-regexp' import { connect } from 'dva' import { Layout, Loader } from 'components' import { classnames, config } from 'utils' import { Helmet } from 'react-helmet' import '../themes/index.less' import './app.less' import NProg...
react/src/Components/NewRecipeModal.js
LeChosenOne/EasyRecipe
import {Button,Modal,FormGroup,ControlLabel,FormControl} from 'react-bootstrap'; import React, { Component } from 'react'; import Ingredient from './Ingredient.js'; import Direction from './Direction.js'; class NewRecipeModal extends Component{ constructor(props){ super(props); this.state = { recipeNam...
web/src/configuration/sources/Sources.js
bolddp/pixerva
import React, { Component } from 'react'; import SourcesList from './SourcesList'; import NewSourceButton from './NewSourceButton'; import DeleteSourceButton from './DeleteSourceButton'; import webService from '../../service/webService'; import imageSourceTypes from './imageSourceTypes'; const sourceHeaders = { fold...
node_modules/eslint-config-airbnb/test/test-react-order.js
truststamp/S3
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, // This rule fails when executing on text. rules: { indent: 0 }, }); function lint(text) { // @see http://e...
src/svg-icons/hardware/keyboard-hide.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardHide = (props) => ( <SvgIcon {...props}> <path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H...
src/containers/navbar_right_element.js
TedtheDev/Tic-Tac-Toe
import React, { Component } from 'react'; import LogoutButton from './logout_button'; import AvatarProfile from './avatar_profile'; class NavbarRightElement extends Component { render() { return ( <div className="navbar-right-element"> <AvatarProfile /> <LogoutButton /> </div> ) ...
src/components/RouterHistoryContainer.js
zapier/redux-router-kit
/** * RouterHistoryContainer is already connected to the router state, so you only * have to pass in `routes`. It also responds to history/click events and * dispatches routeTo actions appropriately. */ import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'...
docs/pages/components/dialogs.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'components/dialogs'; const requireDemo = require.context('docs/src/pages/components/dialogs', false, /\.(js|tsx)$/); const requir...
src/svg-icons/action/pregnant-woman.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPregnantWoman = (props) => ( <SvgIcon {...props}> <path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"/> </SvgIcon> ); ...
src/switch.js
fzzzy/ubiquitous-happiness
import React from 'react'; import inject from '../lib/inject'; import '../styles/switch.scss'; class Switch extends React.Component { constructor(props) { super(props); this.state = { checked: props.checked || false } } getProgress() { const { progress } = this.props; if (progress ==...
client2/src/components/whiteboard/picture.js
frolicking-ampersand/Board
import React from 'react'; import ReactCanvas from 'react-canvas'; const Surface = ReactCanvas.Surface; const Imagine = ReactCanvas.Image; const Picture = React.createClass({ getInitialState () { return {url:"src/components/images/road.png"}; }, render(){ const surfaceWidth = 300, surfaceHeigh...
src/routes.js
BysahaOleh/react-app-boilerplate
import React from 'react'; import { Router, Route, useRouterHistory } from 'react-router'; import { createHashHistory } from 'history'; import store from './store'; import { Provider } from 'react-redux'; import { syncHistoryWithStore } from 'react-router-redux'; const appHistory = useRouterHistory(createHashHistory)(...
practice/a03.30/react/app/NewsHeader.js
GBKstc/test
/** * Created by Administrator on 2017/3/31. */ import React from 'react'; import imageLogo from '../img/y18.gif'; import '../css/NewsHeader.css'; export default class NewsItem extends React.Component { getLogo(){ return ( <div className="newsHeader-logo"> <a href="https://news.ycombinator.com/"><img src=...
src/utils/index.js
Agowan/react-storage-immutable-warnings
import React from 'react'; import ReactDOM from 'react-dom'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export function createRedu...
go-betz/src/index.js
FabioFischer/go-betz
import React from 'react'; import ReactDOM from 'react-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import GoBetz from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugi...
src/Auth.js
jesusalc/learning_full_stack_react
import React from 'react' import ReactDOM from 'react-dom' import ReactDOMServer from 'react-dom/server' import injectTapEventPlugin from 'react-tap-event-plugin' // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin() import MuiThemeProvider from 'material-ui/styles/MuiThemeProvi...
examples/src/components/RemoteSelectField.js
susielu/react-select
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...
react/features/calendar-sync/components/ConferenceNotification.native.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; import { appNavigate } from '../../app/actions'; import { getURLWithoutParamsNormalized } from '../../base/connection'; import { getLocalizedDateFormatter, translate } from '../../base/i18n'; import { Icon,...
src/ui/sample/chart/barChart/index.js
steem/qwp-antd
import React from 'react' import PropTypes from 'prop-types' import { Row, Col, Card, Button } from 'antd' import Container from '../Container' import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts' const data = [ { name: 'Page A', uv: 4000, pv: 2400, am...
react-router-tutorial/lessons/14-whats-next/index.js
zerotung/practices-and-notes
import React from 'react' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import routes from './modules/routes' render( <Router routes={routes} history={browserHistory}/>, document.getElementById('app') )
app/SankeyChart.js
nickbalestra/sankey
import React from 'react'; import ReactFauxDOM from 'react-faux-dom'; import d3 from 'd3'; import sankey from 'd3-plugins-sankey'; import _ from 'lodash'; export default class extends React.Component { constructor() { super() this.state = { nodes: [], links: [] }; } componentWillRece...
app/js/app.js
afonsopacifer/react-pomodoro
import React from 'react'; import ReactDom from 'react-dom'; import Pomodoro from './../components/Pomodoro/Pomodoro'; ReactDom.render(<Pomodoro />, document.getElementById('app'));
src/packages/@ncigdc/modern_components/AffectedCasesTable/AffectedCasesTable.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import Relay from 'react-relay/classic'; import withSize from '@ncigdc/utils/withSize'; import _ from 'lodash'; import { compose, withState } from 'recompose'; import { parse } from 'query-string'; import { parseIntParam, parseFilterParam, parseJSONParam, } from '@ncigdc/util...
Realization/frontend/czechidm-core/src/content/form/FormDefinitionLocalization.js
bcvsolutions/CzechIdMng
import React from 'react'; import { connect } from 'react-redux'; // import * as Basic from '../../components/basic'; import * as Utils from '../../utils'; import { FormDefinitionManager, FormAttributeManager } from '../../redux'; const manager = new FormDefinitionManager(); /** * Form definition - how to add locali...
packages/veritone-widgets/src/widgets/UserProfile/PasswordField/index.js
veritone/veritone-sdk
import React from 'react'; import { string, func } from 'prop-types'; import format from 'date-fns/format'; import { RaisedTextField } from 'veritone-react-common'; import { makeStyles } from '@material-ui/styles'; import styles from './styles'; const useStyles = makeStyles(styles); const PasswordField = ({ lastUpda...
examples/async/index.js
alantrrs/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
bo/src/app/components/FormalProducts.js
jilion107/WebBoilerplate
/** * Created by jilion.chen on 3/12/2017. */ import React from 'react'; import FormalProductsStore from '../stores/FormalProductsStore'; import FormalProductsActions from '../actions/FormalProductsActions'; import moment from 'moment'; import { Form, Spin, Input, Button, Checkbox, DatePicker, Card, Modal, InputNumbe...
examples/complete/simple/src/Todos.js
prescottprue/react-redux-firebase
import React from 'react' import { useSelector } from 'react-redux' import { useFirebaseConnect, isLoaded, isEmpty } from 'react-redux-firebase' import TodoItem from './TodoItem' const todosQuery = { path: 'todos', queryParams: ['limitToLast=10'] } function Todos() { // Attach todos listener useFirebaseConne...
app/components/ProductListComponent.js
cdillon85/the-art-store
import React from 'react' import {Link} from 'react-router' import {Grid, Row, Col} from 'react-bootstrap' export default function ProductListComponent (props) { return ( <div> <h1 className="shop-header"> Shop The Collection </h1> <div className="products-list"> ...
src/svg-icons/av/queue.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueue = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> </SvgIco...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
mhffdq/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
blueocean-material-icons/src/js/components/svg-icons/editor/show-chart.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart.displayName = 'EditorShowChart'; EditorShowChart.muiName = 'SvgIcon'; export defau...
wail-ui/components/layout/location/addFromFsLocation.js
N0taN3rd/wail
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { connect } from 'react-redux' import { batchActions } from 'redux-batched-actions' import { resetCheckMessage } from '../../../actions/archival' import { resetAddFSSeedMessage } from '../../../actions/addSeedFro...
src/index.js
ipelekhan/calculator
import React from 'react'; import ReactDOM from 'react-dom'; import 'sanitize.css'; import './index.css'; import Calculator from './Calculator'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<Calculator />, document.getElementById('root')); registerServiceWorker();
dispatch/static/manager/src/js/components/fields/InteractiveMapField.js
ubyssey/dispatch
import React from 'react' import { FileInput, TextInput, SelectInput, TextAreaInput } from '../../components/inputs' import { Button, Intent } from '@blueprintjs/core' import * as Form from '../../components/Form' class InteractiveMapField extends React.Component { update(fieldName, value) { const data = this....
src/common/components/testimonial/index.js
canonical-ols/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import style from './testimonial.css'; export default function Testimonial(props) { return ( <div> <blockquote className={ style.pullQuote }> <p>{ props.children }</p> </blockquote> <cite className={ style.pullQuoteCitation...
client/components/EditTable.js
KristinaMatuleviciute/reactapp
'use strict'; import React from 'react'; import Row from './Row'; import Jsonic from 'jsonic'; import { Nav, Button, NavItem, Checkbox, Navbar, NavDropdown, MenuItem, Table, Modal, PageHeader, FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap'; export default class ContantTable extends React.Com...
src/web/components/PatientView/__mocks__/Header.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
src/app.js
butterthemes/butterthemes.github.io
import React, { Component } from 'react'; import Layout from './components/layout'; // If you use React Router, make this component // render <Router> with your routes. Currently, // only synchronous routes are hot reloaded, and // you will see a warning from <Router> on every reload. // You can ignore this warning. F...
src/components/PXFormInput.js
alphasp/pxview
import React, { Component } from 'react'; import { View } from 'react-native'; import { TextInput, HelperText } from 'react-native-paper'; class PXFormInput extends Component { handleOnChangeText = (text) => { const { onChangeText, field: { name }, form: { status, setStatus }, } = this.prop...
backend/dynamic-web-apps/voting-app/client/src/index.js
mkermani144/freecodecamp-projects
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import reactTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import { blue500, amberA700 } from ...
app/components/Header/index.js
akeel26/react-user-management
import React from 'react'; import { Button, Breadcrumb, Navbar, Grid, Row, Col } from 'react-bootstrap'; import Logo from 'assets/img/logo.png'; class Header extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <Navbar> <N...
packages/shared/forks/Scheduler.umd.js
STRML/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; const { ...
react-twitter-save-data-loading(client-hint)/src/components/Twitter/Quote.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles'; import Text from './Text'; class Quote extends React.Component { render () { const {data, linkProps} = this.props; return ( <div className="QuoteTweet" style={styles.QuoteTweet}> <a className="QuoteT...
src/browser/containers/browse/Browse.js
ap-o/intro
import React from 'react'; import PropTypes from 'prop-types'; import { graphql } from 'react-apollo'; import LayoutBrowse from 'Browser/components/layout_browse'; import CARDS_QUERY from 'Client/graphql/queries/CardQuery.gql'; /** * Browse Container */ class Browse extends React.Component { static propTypes = ...
ajax/libs/react-instantsearch/5.2.2/Connectors.js
sashberd/cdnjs
/*! React InstantSearch 5.2.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports',...
app/javascript/mastodon/containers/domain_container.js
lindwurm/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { blockDomain, unblockDomain } from '../actions/domain_blocks'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Domain from '../components/domain'; import { openModal } from '../actions/modal'; const messages = d...
packages/react-scripts/template/src/index.js
father-wei/tutitu
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/app/containers/people-detail.js
utsavmaniyar/person-info
import React, { Component } from 'react'; import { connect } from 'react-redux'; class PeopleDetail extends Component{ render(){ if(!this.props.people){ return ( <h2 className="text_white">Please select the person from list. </h2> ); } return ( <div className = "person_detail te...
js/components/tabs/issue.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import {startSpinner, stopSpinner} from '../../actions/loading'; import {Image, View} from 'react-native'; import { Container, Header, Title, Button, Left, Right, Body, Icon,...
src/modules/AppRouter.js
chriswohlfarth/mojifi-app
/*eslint-disable react/prop-types*/ import React from 'react'; import CounterViewContainer from './counter/CounterViewContainer'; import ColorViewContainer from './colors/ColorViewContainer'; /** * AppRouter is responsible for mapping a navigator scene to a view */ export default function AppRouter(props) { const...
assets/jqwidgets/demos/react/app/rangeselector/datascale/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js'; class App extends React.Component { render () { return ( <JqxRangeSelector ref='myRangeSelector' width={750} height={1...
app/components/Login/LoginForm.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; const klplogo = require('../../css/images/KLP_logo.png'); const klpImage = require('../../css/images/klp.png'); const LoginPageWrapper = ({ error, children }) => { return ( <div id="login-page"> <nav className="main__header navbar navbar-white...
react_app/src/components/Demos/SettingsDemo.js
morpheyesh/TeenyURL
// =========================================== // SettingsDemo.js // ---- // Specific demo for parts of general settings // =========================================== // ---- External Dependencies ---- import React, { Component } from 'react'; // ---- Internal Dependencies ---- import Settings from '../Settings/Sett...
app/components/DashBoard/MySite.js
mmis1000/sso-portal
import React from 'react'; import { Link } from 'react-router-dom' import Site from './MySite/Site' import SiteStore from '../../stores/SiteStore' import AppStore from '../../stores/AppStore' import SiteActions from '../../actions/SiteActions' class MySite extends React.Component { constructor () { super(); ...
plugins/Terminal/js/components/commandhistorylist.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import { List } from 'immutable' export default class CommandHistoryList extends React.Component { componentDidUpdate () { this._commandHistoryList.scrollTop = this._commandHistoryList.scrollHeight } render () { const CommandHistoryComponents ...
src/components/ui/SearchInput.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import classnames from 'classnames'; import { debounce } from 'lodash'; export default @observer class SearchInput extends Component { static propTypes = { value: PropTypes.string, placeholder...
src/example/legends/horizontal-discrete-color.js
jameskraus/react-vis
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
node_modules/react-icons/ti/document.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiDocument = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.8 12.2l-6.6-6.7c-0.3-0.3-0.8-0.5-1.2-0.5h-13.3c-2.8 0-5 2.2-5 5v20c0 2.8 2.2 5 5 5h16.6c2.8 0 5-2.2 5-5v-16.7c0-0.4-0.1-0.8-0.5-1.1z m-3.5 1.1h-1.8c-1.4 0-2.5-1....
lib/data-watcher.js
mistadikay/doob
import React from 'react'; import State from './state'; import throwError from './throw-error'; module.exports = function(dataFactory) { return function(Component) { class DataWatcher extends React.Component { static contextTypes = { state: React.PropTypes.instanceOf(State) ...
client/components/header.js
alexpoe22/fuzzyFinder
import React from 'react'; const Header = () => <div className="header"> <h1> Fuzzy Finder </h1> </div> export default Header;
docs-site/src/components/api-documentation-components.js
brightinteractive/bright-js-framework
import React from 'react' import MarkdownView from 'react-markdown' /** * Render a function or method signature in typescript syntax. */ export const FunctionSignature = ({ keyword, parameters, type, name, decorator }) => { return ( <Prototype> {decorator && '@'} {keyword && keyword + ' '} <s...
packages/magic-scripts/template/src/index.js
magic-FE/create-magic-component
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components'; ReactDOM.render( <App></App>, document.getElementById('root') );
docs/src/components/app.js
Cadasta/django-skivvy
import React from 'react'; import Navigation from './navigation'; import Content from './content'; import RoundedToggle from './rounded_toggle'; import PureRenderMixin from 'react-pure-render/mixin'; import GithubSlugger from 'github-slugger'; import debounce from 'lodash.debounce'; import { brandNames, brandClasses } ...
src/deposit/DepositMobile.js
nuruddeensalihu/binary-next-gen
import React from 'react'; import MobilePage from '../containers/MobilePage'; import DepositContainer from './DepositContainer'; export default (props) => ( <MobilePage toolbarShown={false} backBtnBarTitle="Deposit"> <DepositContainer {...props} /> </MobilePage> );
src/components/CrossFader/CrossFader.js
kevinchau321/TReactr
import React from 'react'; // import { BiDirectionalKnob } from 'treactr-canvas-knob'; // import { Kill, FxToggle1, FxToggle2, ToggleMonitorCue } from 'treactr-toggle'; import Slider from 'treactr-slider'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './CrossFader.css'; class CrossFad...
src/svg-icons/content/remove-circle-outline.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8...
client/src/main.js
jakebian/hera
import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './store/createStore'; import AppContainer from './containers/AppContainer'; // ======================================================== // Store Instantiation // ======================================================== const initialS...
hello.js
manubamba/react-twitter
import React from 'react'; export default class Hello extends React.Component { constructor(props) { super(props); } render() { return ( <div>Hello World</div> ); } }
src/svg-icons/av/web.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWeb = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/> </SvgIcon> ); AvWeb = pur...