path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
example/src/style.js
romainberger/react-portal-tooltip
import React from 'react' import ToolTip from './../../src' export default class Style extends React.Component { state = { display: false } escape(html) { return document.createElement('div').appendChild(document.createTextNode(html)).parentNode.innerHTML } getBasicExample() { return { __...
src/server.js
yinaw/travelBook
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; import assets from './a...
app/app.js
ptelad/tal-and-aviad-player
import React from 'react'; import { AppRegistry, StyleSheet, View, ActivityIndicator, FlatList } from 'react-native'; import { parseString } from 'react-native-xml2js'; import ItemCard from './components/ItemCard'; import Player from './components/Player'; export default class TalAndAviad extends R...
src/index.js
djstein/modern-react
import createHistory from 'history/createBrowserHistory'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Switch } from 'react-router-dom'; import { ConnectedRouter, routerMiddleware } from 'react-router-redux'; import { createStore, applyMiddleware, compose...
docs/src/pages/components/drawers/PersistentDrawerRight.js
lgollut/material-ui
import React from 'react'; import clsx from 'clsx'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import Drawer from '@material-ui/core/Drawer'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import CssBaseline from '@material-ui/core/CssBaseline'; imp...
app/javascript/mastodon/containers/account_container.js
kirakiratter/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../selectors'; import Account from '../components/account'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAc...
frontend/src/pages/logout.js
jjasonclark/GLAD-to-JAM-on-Docker
import React from 'react'; import { Link } from 'react-router-dom'; import LogoutForm from '../components/logout_form'; const Logout = () => ( <div className="App centered"> <div>Logout Page</div> <Link to="/">Back to home</Link> <LogoutForm /> </div> ); export default Logout;
fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
altiore/webpack-react
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; async function load() { return { users: [ { i...
mooc_gp/js/Boy.js
xizhouhezai/react-app
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, Text, Button } from 'react-native'; import { StackNavigator } from 'react-navigation'; import NavigationBar from './component/NavigationBar'; class Boy extends Component { render() { return( <View>...
src/components/Journal/index.js
andywillis/uws
// Dependencies import React from 'react'; import PropTypes from 'prop-types'; // React import Byline from '../Byline'; import Paginator from '../Paginator'; import EntryList from '../EntryList'; // Style import './style.css'; const createByline = ({ type, value }) => { return ( <Byline type={type !== 'p...
src/svg-icons/action/settings-backup-restore.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBackupRestore = (props) => ( <SvgIcon {...props}> <path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2....
src/index.js
anovelmous-dev-squad/anovelmous-web
import React from 'react'; import ReactDOM from 'react-dom'; import Root from 'containers/Root'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); const target = document.getElementById('root'); const node = ( <Roo...
libraries/mobx/timer-strict/src/index.js
vivaxy/course
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { useStrict } from 'mobx'; import AppState from './AppState'; import App from './App'; import './index.css'; useStrict(true); const appState = new AppState(); render(<App appState={appState} />, doc...
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
kylewistrand/IsUWOpen
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
wrappers/html.js
MichaelCereda/michaelcereda.com
import React from 'react' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <div className="markdown"> <h1 dangerouslySetInnerHTML={{ __html: post.title }} /> <...
src/components/Assets.js
peragro/peragro-ui
import React from 'react' import Reflux from 'reflux' import { Link } from 'react-router' import auth from '../utils/auth' var AssetStore = require('../stores/AssetStore'); import BreadCrumb from './BreadCrumb' export default React.createClass({ mixins: [Reflux.listenTo(AssetStore, "update")], getInitialState: ...
src/components/ConvertedList/ConvertedList.js
ilyagru/react-currency-converter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchCurrencies } from '../../redux/actions/fetchActions'; import ConvertedRow from '../ConvertedRow'; import './ConvertedList.css'; export class ConvertedList extends Component { componentDidMount() { this.props.f...
src/example/index.js
abobwhite/slate-editor
import React from 'react' import { Router } from 'react-router' import createBrowserHistory from 'history/createBrowserHistory' import { version } from '../../package.json' import Home from './pages/Home' import './index.css' const history = createBrowserHistory() export default () => ( <Router history={history}> ...
klassify/interface/components/Trainer.js
fatiherikli/klassify
import React, { Component } from 'react'; import Select from 'react-select'; import styles from './Form.module.css'; import store from '../store'; class Trainer extends Component { state = { text: null, label: null, isTrained: false }; componentDidMount() { this.removeListener = store.addListe...
website/src/pages/components/home/ValueProps.js
Pop-Code/keystone
import React, { Component } from 'react'; import Container from '../../../../components/Container'; import { Col, Row } from '../../../../components/Grid'; import { compose } from 'glamor'; import theme from '../../../../theme'; import { EntypoLeaf, EntypoShuffle, EntypoImages, EntypoLightBulb, EntypoPencil, Ent...
src/bootstrap.js
serge-14/smartserialapp
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './components/main'; import { compose, createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import reducer from './reducers' import { resetConnection, clearLogs } from './actions' import thunkMiddleware from 'red...
src/svg-icons/communication/call-missed.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMissed = (props) => ( <SvgIcon {...props}> <path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/> </SvgIcon> ); CommunicationCallMissed = pure(CommunicationCallMissed); CommunicationC...
Router/router-demo/src/router/AmbiguousMatches.js
imuntil/React
import React from 'react' import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom' const AmbiguousDemo = ({match}) => ( <Router basename={match.url}> <div style={{position: 'absolute', width:'100%', height: '200px'}}> <ul> <li><Link to='/about'>About Us</Link></li> ...
src/components/blocks/BlockText.js
m0sk1t/react_email_editor
/* eslint-disable */ import React from 'react'; import { connect } from 'react-redux'; import { stylizeBlock } from '../../actions'; const mapStateToProps = (state) => { return { config: state.tinymce_config }; }; const mapDispatchToProps = (dispatch) => { return { onPropChange: (prop, val, container, elementI...
src/imports/ui/admin/components/products/RecommendProductButton.js
hwillson/meteor-recommendation-builder
import React from 'react'; import { Button } from 'react-bootstrap'; import { addRecommendedProduct } from '/imports/api/recommended_products/methods.js'; class RecommendProductButton extends React.Component { constructor(props) { super(props); this.addProductToRecommendedList = this.addProductToRec...
src/components/InfoWindowComponent.js
jezzasan/taproom-react
'use strict'; import React from 'react'; class InfoWindowComponent extends React.Component { constructor(props) { super(props); this.state= { active: false }; } _addToCrawl() { this.setState({active: !this.state.active}); } render() { return ( <div className="infowindow-compo...
app/javascript/mastodon/features/lists/index.js
dwango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compo...
src/components/Footer/Footer.js
mminutel/upkeep
import React, { Component } from 'react'; import './Footer.css'; class Footer extends Component { render() { return ( <div> --Footer goes here.-- </div> ); } } export default Footer;
src/docs/components/heading/HeadingDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Heading from 'grommet/components/Heading'; import Anchor from 'grommet/components/Anchor'; import Button from 'grommet/components/Button'; import DocsArticle from '../../../components/DocsArticle'; ex...
src/js/Containers/Blog.js
7sleepwalker/addicted-to-mnt
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import BlogPost from '../Components/BlogPost'; import { getPosts } from '../Actions/postActions'; class Blog extends Component { componentWillMount() { this.props.dispatch(getPosts()); ...
examples/js/manipulation/del-row-custom-confirm.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ /* eslint no-alert: 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 i...
packages/node_modules/@ciscospark/react-component-chip-file/src/index.js
Altocloud/alto-react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon, {ICON_TYPE_DOCUMENT} from '@ciscospark/react-component-icon'; import ChipBase from '@ciscospark/react-component-chip-base'; import styles from './styles.css'; export default function ChipFile(props) { c...
frontend/app/js/components/card.js
serverboards/serverboards
import React from 'react' import Icon from './iconicon' import {colorize} from 'app/utils' import {MarkdownPreview} from 'react-marked-markdown' /// To be able to change container to <a> or whatever. Normally would be div function Div(props){ return ( <div {...props}> {props.children} </div> ) } func...
examples/huge-apps/routes/Calendar/components/Calendar.js
ksivam/react-router
import React from 'react' class Calendar extends React.Component { render() { const events = [ { id: 0, title: 'essay due' } ] return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
imports/ui/pages/EditDocument.js
lizihan021/SAA-Website
import React from 'react'; import PropTypes from 'prop-types'; import { Meteor } from 'meteor/meteor'; import Documents from '../../api/documents/documents'; import DocumentEditor from '../components/DocumentEditor'; import NotFound from './NotFound'; import container from '../../modules/container'; const EditDocument...
icon_tab_bar.js
evilgoldfish/North
import React from 'react'; import { StyleSheet, Text, View, TouchableOpacity, } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; /** * Modified from the FacebookExample class FacebookTabBar, * from the react-native-scrollable-tab-view repository. * https://github.com/skv-headless/...
react/react-demo/src/index.js
hunering/demo-code
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Game from './App'; import Clock from "./Clock"; import NameForm from "./NameForm"; import registerServiceWorker from './registerServiceWorker'; //ReactDOM.render(<App />, document.getElementById('root')); ReactDOM.render( <Ga...
src/components/login/loginForm/LoginTabs.js
TulevaEE/onboarding-client
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import LoginTab from './LoginTab'; class LoginTabs extends Component { static propTypes = { children: PropTypes.instanceOf(Array).isRequired, }; state = { activeTab: this.props.children[0].props.label, }; onClickTabItem ...
src/js/components/input/input_switch.js
rafaelfbs/realizejs
import React from 'react'; import PropTypes from '../../prop_types'; import i18n from '../../i18n'; import { mixin } from '../../utils/decorators'; import InputCheckboxBase from './checkbox/input_checkbox_base'; import InputHidden from './input_hidden'; import { Label } from '../label'; import { CssClassMixin, } fr...
src/components/common/cover/Cover/Cover.js
CtrHellenicStudies/Commentary
import React from 'react'; import CoverBackground from '../CoverBackground'; import './Cover.css'; class Cover extends React.Component { constructor(props) { super(props); this.state = { width: window.innerWidth, }; } componentDidMount() { window.addEventListener('resize', () => { this.handleResi...
src/component/Header/index.js
botlang/org.botlang.try
import AppBar from 'material-ui/AppBar'; import Botlang from 'botlang'; import React from 'react'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; import { withStyles } from 'material-ui/styles'; const styles = { root: { width: '100%', } }; function Header(props) { ...
app/containers/HomePage/index.js
dreamdojo/converter
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/components/NavigationButton.js
meerasahib/meerablog1
import React from 'react'; import styled from 'styled-components'; import Link from 'gatsby-link'; import BackIcon from 'react-icons/lib/fa/chevron-left'; import ForwardIcon from 'react-icons/lib/fa/chevron-right'; import { getColorFromString } from '../utils/color'; import { rhythm } from '../utils/typography'; cons...
app/src/General/components/NotFound.js
rmonnier/hypertube
import React from 'react'; import { injectIntl } from 'react-intl'; const NotFound = (props) => { const pageNotFound = props.intl.formatMessage({ id: 'general.pageNotFound' }); const noPage = props.intl.formatMessage({ id: 'general.noPage' }); return ( <div className="not-found"> <h1>{pageNotFound}</h...
app/m_components/collect/CollectItem.js
kongchun/BigData-Web
import React from 'react'; import { Link } from 'react-router'; class CollectItem extends React.Component { render(){ return ( <Link to={'/article/' + this.props.articleid} className="collect-list-item"> <div className="container container-row"> <div className="row"> <div className="col-sm-8"> <div cla...
app/containers/Assessments/CreateAssessment.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import get from 'lodash.get'; import isEmpty from 'lodash.isempty'; import capitalize from 'lodash.capitalize'; import { DEFA...
src/components/Accordion/Accordion.js
carbon-design-system/carbon-components-react
/** * 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 from 'react'; import classnames from 'classnames'; import { settings } from 'carbon-componen...
src/client/js/app.js
onomatopio/ChatPlayground
// system import React from 'react'; import ReactDOM from 'react-dom'; // user import * as polifills from '../../util/polifills'; import ChatApp from './components/App/ChatApp.react'; ReactDOM.render( <ChatApp />, document.getElementById('react') );
pages/terms-and-conditions.js
turntwogg/final-round
import React from 'react'; import Page from '../components/Page'; import PageHeader from '../components/PageHeader'; import PageContent from '../components/PageContent'; export default () => { return ( <Page title="Terms & Conditions"> <PageHeader title="Terms & Conditions" /> <PageContent> ...
src/modules/Transition/utils/wrapChild.js
Semantic-Org/Semantic-UI-React
import React from 'react' import Transition from '../Transition' /** * Wraps a React element with a Transition component. * * @param {React.ReactElement} child * @param {Function} onHide * @param {Object} [options={}] * @param {String} [options.animation] * @param {Number} [options.duration] * @param {Boolean}...
src/components/Root.js
jhegedus42/egghead-redux-playaround
// @flow import {TodoApp} from './TodoApp' import React from 'react'; import {Provider} from 'react-redux'; import type {StoreType } from '../configureStore.js'; import {Router, Route} from 'react-router'; import { browserHistory } from 'react-router' const Root = ({store}:{store:StoreType})=> ( <Provider store = {s...
src/routes/home/Home.js
ImanMh/react-proto
/** * 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-...
example/events.js
uniphil/react-leaflet
import React, { Component } from 'react'; import { Map, TileLayer, Marker, Popup } from 'react-leaflet'; export default class EventsExample extends Component { constructor() { super(); this.state = { hasLocation: false, latlng: { lat: 51.505, lng: -0.09, }, }; } han...
src/layouts/CoreLayout/CoreLayout.js
Grobim/poke-drive
import React from 'react'; import HeaderContainer from 'containers/Header'; import classes from './CoreLayout.scss'; import 'styles/core.scss'; export const CoreLayout = ({ children }) => ( <div className={classes.mainContainer}> <HeaderContainer /> <div className={classes.container}> {children} </...
src/svg-icons/action/lock-open.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOpen = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ...
src/app/js/MathRow.js
skratchdot/colorify
import React, { Component } from 'react'; import { Row, Col } from 'react-bootstrap'; import MathCol from './MathCol'; class MathRow extends Component { render() { const $this = this; let on = []; let off = []; this.props.flags.forEach(function (val, index) { if (val) { on.push($this.pr...
fields/types/number/NumberColumn.js
rafmsou/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.object, data: React.PropTyp...
src/atoms/FlashMessage/index.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './flash_message.module.scss'; function FlashMessage(props) { const { children, variant, } = props; return ( <div className={classnames(styles['flash-message'], styles[variant])}> ...
examples/js/manipulation/strict-search-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];...
client/src/components/Listing/FullListing.js
Velocies/raptor-ads
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import Carousel from 'nuka-carousel'; import moment from 'moment'; import { Container, Grid, Image, Header, Divider, Message, List, Loader, Button, Modal, Form, Card } from 'semantic-ui-react'; import G...
step7-unittest/app/js/components/Profile.js
jintoppy/react-training
import React from 'react'; const Profile = (props) => { return ( < div > Profile Page { props.name } < /div>); } export default Profile;
src/components/Common/Navbar.js
MattMcFarland/tw-client
import React, { Component } from 'react'; import UserActions from '../../actions/UserActions'; import UserStore from '../../stores/UserStore'; import connectStores from 'alt/utils/connectToStores'; import DropDown from './DropDown'; class Navbar extends Component { constructor(props) { super(props); this.st...
app/javascript/flavours/glitch/features/lists/index.js
vahnj/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from 'flavours/glitch/components/loading_indicator'; import Column from 'flavours/glitch/features/ui/components/column'; import Column...
app/containers/NotFoundPage/index.js
j921216063/chenya
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
src/application-box.js
slx-dev/react-testing
import React from 'react'; import ApplicationList from './application-list'; import Jumbotron from './jumbotron'; import PRODUCTS from './products.json'; export default class ApplicationBox extends React.Component { constructor(props) { super(props); this.state = { data: PRODUCTS }; } // loadApplications...
benchmarks/dom-comparison/src/implementations/react-fela-useFela/Box.js
risetechnologies/fela
import React from 'react' import { useFela } from 'react-fela' const rule = ({ color, fixed = false, layout = 'column', outer = false }) => ({ alignItems: 'stretch', borderWidth: '0px', borderStyle: 'solid', boxSizing: 'border-box', display: 'flex', flexBasis: 'auto', flexDirection: 'column', flexShrin...
src/svg-icons/action/group-work.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGroupWork = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5...
classic/src/scenes/mailboxes/src/Components/Backed/MailboxAvatar.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import { accountStore } from 'stores/account' import shallowCompare from 'react-addons-shallow-compare' import Resolver from 'Runtime/Resolver' import ACAvatarCircle2 from 'wbui/ACAvatarCircle2' export default class MailboxAvatar extends React.Component { ...
es/components/style/cancel-button.js
dearkaran/react-planner
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/components_OLD/Layout.js
travism26/microservice-frontend
import React, { Component } from 'react'; import logo from './../logo.svg'; import '../App.css'; import Footer from "./Footer"; import Header from "./Header"; class Layout extends Component { render() { const title = "Welcome Travis!"; return ( <div className="App"> <h1>hello world</h1> ...
MadWare.Hathor.FrontEnd/src/js/components/client/Client.js
zvizdo/MadWare.Hathor
import React from 'react' import { connect } from 'react-redux' import AddToPlaylist from './../shared/AddToPlaylist'; import CurrentlyPlaying from './../shared/CurrentlyPlaying'; import Playlist from './../shared/Playlist'; import setupActions from './../../actions/setupActions'; import clientActions from './../../a...
src/webapp.js
AlhasanIQ/PiTrol
import React, { Component } from 'react'; var plugins = require('./plugins') const componentList = [] for (var i = 0; i < plugins.length; i++) { const plugin = plugins[i] const uiComponent = plugin.ref.uiComponent componentList.push(uiComponent) } export default class WebApp extends Component { render() { ...
src/components/Footer/Footer.js
expdevelop/d812
import React from 'react' import { Container, Link, Title, FlexGrid, Content, Svg } from 'components' import s from './Footer.sass' import { socialLinks, navMail, navPhones } from 'config' import { CATALOG as catalogLink } from 'constants/urls' import logoIcon from 'icons/logo.svg' const Footer = ({onHelpClick, ad...
app/containers/NotFoundPage/index.js
theseushu/runcai
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/pages/conference/people/staff/edit/rolesActive.js
sunway-official/acm-admin
import React, { Component } from 'react'; import { ListItem, Toggle } from 'material-ui'; import { graphql, compose } from 'react-apollo'; import { connect } from 'react-redux'; import { queries, mutations } from '../helpers'; class RoleItem extends Component { constructor(props) { super(props); this.handleUp...
src/px-alert-label/index.js
jonniespratley/px-components-react
import React from 'react'; import classnames from 'classnames'; import style from './style.scss'; import BaseComponent from '../base-component'; /** * px-alert-label component */ export default ({label, type = 'info', badge, children}) => { const _isCircle = (t) =>{ return t === 'unknown'; }; const _get...
src/components/ui/button/full_button.js
KmKm007/oa
import React from 'react' import PropTypes from 'prop-types' import BaseButton from './base_button' class FullButton extends React.Component { static propTypes = { className: PropTypes.string } render () { let { className, ...restProps } = this.props className = className || 'full-button' retur...
src/client/components/FilterView/DeleteDeviceLink.js
ZeusTheTrueGod/background-geolocation-console
// @flow import React from 'react'; import Link from 'react-toolbox/lib/link'; import { connect } from 'react-redux'; import { type GlobalState } from '~/reducer/state'; import { deleteActiveDevice } from '~/reducer/dashboard'; type StateProps = {| isVisible: boolean, |}; type DispatchProps = {| onClick: () => any...
src/components/LandingFooter/LandingFooter.js
Anshul-HL/blitz-windermere
import React, { Component } from 'react'; import { Row, Col, Grid } from 'react-bootstrap'; export default class LandingFooter extends Component { render() { const styles = require('./LandingFooter.scss'); return ( <Grid fluid className={styles.footer}> <Row className={styles.footerWrapper}> ...
examples/js/selection/selection-column-width-table.js
AllenFang/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, ...
src/components/travis/plain-wordmark/TravisPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './TravisPlainWordmark.svg' /** TravisPlainWordmark */ function TravisPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'TravisPlai...
src/components/Navigation/Navigation.js
fkn/ndo
import PropTypes from 'prop-types'; import React from 'react'; import { Nav, Navbar, NavItem } from 'react-bootstrap'; import { connect } from 'react-redux'; import Link from '../Link'; function logout(event) { event.preventDefault(); fetch('/logout', { method: 'POST' }).then( () => (window.location.pathname =...
node_modules/_antd@2.13.4@antd/es/breadcrumb/Breadcrumb.js
ligangwolai/blog
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PropTypes ...
sources/components/about.js
markuswustenberg/template
import React from 'react' export default class About extends React.Component { render() { return ( <div> <h1>😎 template</h1> <p>Find the source code on <a href="https://github.com/markuswustenberg/template">Github</a>.</p> </div> ) } }
react-flux-mui/js/material-ui/src/svg-icons/av/playlist-add.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistAdd = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/> </SvgIcon> ); AvPlaylistAdd = pure(AvPlaylistAdd); AvPlaylistAdd...
app/components/Tabs/Tab.js
lgarcin/LatexElectronReact
import React, { Component } from 'react'; import styles from './Tab.css'; export default class Tab extends Component { render() { const activeClass = this.props.active ? styles.active : ''; return ( <li className={`${styles.tab} ${activeClass}`}> <a role="button" tabIndex="0" onClic...
src/js/components/Flurries.js
Fraina/React-Weather-Widget
import React, { Component } from 'react'; export default class Flurries extends Component { render() { return ( <div className="icon"> <div className="cloud"></div> <div className="snow"> <div className="flake"></div> <div className="flake"></div> </div> </...
src/svg-icons/image/leak-remove.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLeakRemove = (props) => ( <SvgIcon {...props}> <path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24...
src/Icon.js
jareth/react-materialize
import React from 'react'; import constants from './constants'; import cx from 'classnames'; class Icon extends React.Component { render() { let classes = { 'material-icons': true }; constants.PLACEMENTS.forEach(p => { classes[p] = this.props[p]; }); constants.ICON_SI...
src/modules/todo/components/TodoInlineForm.js
scubism/react_todo_web
import React from 'react' import autobind from 'autobind-decorator' import { reduxForm } from 'redux-form' import { createTodo, updateTodo, focusTodo } from '../actions' const fields = [ 'id', 'title', 'due_date', 'color', 'marked', ] @autobind class _TodoInlineForm extends React.Component { componentDidM...
docs/client/components/pages/Linkify/index.js
draft-js-plugins/draft-js-plugins-v1
import React, { Component } from 'react'; import Container from '../../shared/Container'; import AlternateContainer from '../../shared/AlternateContainer'; import Heading from '../../shared/Heading'; import styles from './styles.css'; import Code from '../../shared/Code'; import SimpleLinkifyEditor from './SimpleLinkif...
es/components/Chat/Markup/StrikeThrough.js
welovekpop/uwave-web-welovekpop.club
import _objectWithoutProperties from "@babel/runtime/helpers/builtin/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; var StrikeThrough = function StrikeThrough(_ref) { var children = _ref.children, props = _objectWithoutProperties(_ref, ["children"]); return React.cr...
src/img/icon_dash.js
mikah1337/null-terminator
import React from 'react'; export default class Icon_Dash extends React.Component { constructor(props) { super(props); this.state = { height: this.props.height || "70%", color: this.props.color || "#7f8086" } } render() { return ( <svg xm...
examples/optgroup.js
ddcat1115/select
/* eslint no-console: 0 */ import React from 'react'; import Select, { Option, OptGroup } from 'rc-select'; import 'rc-select/assets/index.less'; import ReactDOM from 'react-dom'; function onChange(value) { console.log(`selected ${value}`); } const c1 = ( <div> <h2>Select OptGroup</h2> <div style={{ widt...
src/svg-icons/action/backup.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBackup = (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.96z...
test/components/AnotherHigherOrderComponent.js
naoufal/higher-order
import React, { Component } from 'react'; export default function AnotherHigherOrderComponent(ComposedComponent) { class AnotherHigherOrderComponent extends Component { render() { return ( <div style={this.props.styles}> Another Higher Order Component (passes this.props.greeting) ...
src/react-loader-advanced.js
nygardk/react-loader-advanced
/* eslint-disable prefer-template, quote-props, no-underscore-dangle, react/require-default-props, react/forbid-prop-types */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import EventEmitter from 'wo...
app/user/profile/UnselectedProfileSkillListItem.js
in42/internship-portal
import React from 'react'; import { Label, Icon } from 'semantic-ui-react'; import PropTypes from 'prop-types'; export default class UnselectedProfileSkillListItem extends React.Component { constructor() { super(); this.handleClick = (event, data) => { console.log(data.children[0].props.children); ...
docs/app/Examples/elements/Label/Groups/LabelExampleGroupTag.js
koenvg/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleGroupTag = () => ( <Label.Group tag> <Label as='a'>$10.00</Label> <Label as='a'>$19.99</Label> <Label as='a'>$24.99</Label> <Label as='a'>$30.99</Label> <Label as='a'>$10.25</Label> </Label.Group> ) export de...
modules/RouteUtils.js
iest/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...