path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/benchmarks/reshadow/client/index.js
A-gambit/CSS-IN-JS-Benchmarks
import ReactDOM from 'react-dom'; import React from 'react'; import App from 'benchmarks-utils'; import Table from './Table'; import './index.html'; ReactDOM.render(<App table={Table} />, document.getElementById('root'));
src/routes/about/index.js
niketpathak/npk-website
/** * @author Niket Pathak. (http://www.niketpathak.com/) * * Copyright © 2014-present. 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 Layout from '../../components/Layout...
app/containers/Home/HomePage.js
DenQ/electron-react-lex
// @flow import React, { Component } from 'react'; import Home from '../../components/Home/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
app/components/TodoEntry.js
ernieturner/webpack-redux-boilerplate
import React from 'react'; class TodoEntry extends React.Component { constructor(props, context){ super(props, context); this.state = { todoText: "" }; } onTextChange(evt){ this.setState({ todoText: event.target.value }); } addTodo()...
Libraries/Text/Text.js
Ehesp/react-native
/** * 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...
boilerplates/project/mobileWeb/src/components/Async/Async.js
FuluUE/vd-generator
import React from 'react'; import PropTypes from 'prop-types'; class Async extends React.Component { static propTypes = { } static defaultProps = { } constructor(props) { super(props); } componentWillMount() { const { props: { dispatch } } = this; dispatch({ type: 'async/tests' }); }...
actor-apps/app-web/src/app/utils/require-auth.js
hardikamal/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
src/svg-icons/navigation/expand-more.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationExpandMore = (props) => ( <SvgIcon {...props}> <path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/> </SvgIcon> ); NavigationExpandMore = pure(NavigationExpandMore); NavigationExpandMore.displayN...
docs/lib/Components/ControlBarPage.js
video-react/video-react
/* eslint react/no-multi-comp: 0, react/prop-types: 0 */ import React from 'react'; import { PrismCode } from 'react-prism'; import { Button } from 'reactstrap'; import Helmet from 'react-helmet'; import ControlBarExample from '../examples/ControlBar'; const ControlBarExampleSource = require('!!raw-loader!../examples/...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleIconDivider.js
aabustamante/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleIconDivider = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right chevron' /> <Breadcrumb.Section link>Registration</Breadcrumb.Section> <Breadcrumb.Divi...
app/javascript/mastodon/features/explore/tags.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { fetc...
packages/@sanity/dashboard/src/components/WidgetGroup.js
sanity-io/sanity
/* eslint-disable react/prop-types */ import React from 'react' import styled, {css} from 'styled-components' import {Grid} from '@sanity/ui' import {WidgetContainer} from '../legacyParts' const media = { small: (...args) => css` @media (min-width: ${({theme}) => theme.sanity.media[0]}px) { ${css(....
spec/components/font_icon.js
react-toolbox/react-toolbox
import React from 'react'; import FontIcon from '../../components/font_icon'; const FontIconTest = () => ( <section> <h5>Font Icons</h5> <p>lorem ipsum...</p> <FontIcon value="add" alt="add icon" /> <FontIcon value="access_alarm" /> <FontIcon value="explore" alt="explore icon" /> <FontIcon v...
src/routes/CoinFlip/components/CoinView.js
dontexpectanythingsensible/random-utils
import React from 'react'; import { getRandomInt } from 'services/utils'; import Coin from 'components/Coin'; import Slider from 'components/Slider'; import Ad from 'components/Ad'; export default class CoinView extends React.Component { state = { coins: [], amount: 1 } flip = () => { const coins = ...
packages/mineral-ui-icons/src/IconLibraryAdd.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 IconLibraryAdd(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
packages/icons/src/md/image/Colorize.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdColorize(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M41.41 11.255c.79.78.79 2.04 0 2.82l-6.25 6.25 3.84 3.84-2.83 2.83-2.83-2.84-17.84 17.84H6v-9.5l17.84-17.83-2.84-2.84 2.83-2.83 3.83 3.84 6.25-6.25c...
src/svg-icons/device/screen-lock-landscape.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockLandscape = (props) => ( <SvgIcon {...props}> <path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c...
src/components/SearchForPeople/SearchForPeople.js
worknation/client.work.nation
import {d} from 'lightsaber/lib/log' import React from 'react' import isPresent from 'is-present' import {Avatar, Profile, SkillAutosuggest} from '..' import Auth from '../../models/Authentication' import server from '../../models/Server' export default class SearchForPeople extends React.Component { constructor(pr...
app/routes.js
phosphene/react-fullstack-d3-demo
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules'; import Timer from './modules/Timer'; import Notes from './modules/Notes'; import ParaCoD3 from './modules/ParaCoD3'; import StreamGraph from './modules/StreamGraph'; import ThrashDash from './modules/ThrashDash'; ...
client/modules/core/components/footer.js
LikeJasper/mantra-plus
import React from 'react'; import { Paper } from 'material-ui'; const Footer = () => ( <footer> <Paper> <p> <small>Built with <a href="https://github.com/kadirahq/mantra">Mantra</a> &amp; Meteor.</small> </p> </Paper> </footer> ); export default Footer;
src/svg-icons/action/accessible.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessible = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19...
app/components/posts/PostSingle.js
ramsaylanier/ApolloPress
import React from 'react'; import { connect } from 'react-apollo'; import PostContent from './PostContent.js'; import CSSModules from 'react-css-modules'; import styles from './post.scss'; @CSSModules(styles, {allowMultiple: true}) class PostSingle extends React.Component{ componentDidMount(){ const post = t...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
hgezim/react-router
import React from 'react'; class Grades extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments; return ( <div> <h3>Grades</h3> <ul> {assignments.map(assignment => ( <li key={assignment.id}>{assignment.grade} - {assi...
src/App.js
dkozar/react-wrappy-text
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import WrappyText from './components/WrappyText.js'; import TextRotator from './components/TextRotator.js'; import ScrollListener from './components/ScrollListener.js'; const BUTTON_TEXT = 'Do it again!'; require('./styles/main.css'); const ...
src/index.js
algernon/mad-tooter
// @flow /* The Mad Tooter -- A Mastodon client * Copyright (C) 2017 Gergely Nagy * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your o...
node_modules/semantic-ui-react/src/views/Statistic/StatisticGroup.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useWidthProp, } from '../../lib' import Statistic from './Statistic' /** * A group of stat...
src/Card.js
lyallsv/react-solitaire
import React, { Component } from 'react'; import CardMeta from './CardMeta'; import CardUtils from './CardUtils'; class Card extends Component { render() { let {isVisible, card} = this.props; let meta = CardUtils.getMeta(card); return ( <div className={"card " + (isVisible ? '' : 'flipped')}> ...
src/mui/field/BooleanField.js
marmelab/admin-on-rest
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import pure from 'recompose/pure'; import FalseIcon from 'material-ui/svg-icons/content/clear'; import TrueIcon from 'material-ui/svg-icons/action/done'; export const BooleanField = ({ source, record = {}, elStyle }) => { ...
src/svg-icons/hardware/speaker-group.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeakerGroup = (props) => ( <SvgIcon {...props}> <path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2...
src/components/VideoItem/index.js
PalmasLab/palmasplay
import React from 'react' import moment from 'moment' import styles from './styles.css' let formatRuntime = (runtime) => (moment.utc(runtime*1000).format("mm:ss")) let formatPublished = (published) => (moment(published).fromNow()) let prettyNumber = (num) => ( // hackish, we probably can do that with a single re...
static/programming-tutorials-backup/src/projects/frontend/lessons/HTMLCSSJSDifferences.js
EdwardRees/EdwardRees.github.io
import React from 'react'; const HTMLCSSJSDifferences = () => ( <div><h2>HTML, CSS, JS Differences</h2></div> ) export { HTMLCSSJSDifferences };
client/src/components/EditAbhanga/index.js
mohandere/tukaram-gatha
import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; import { Row, Col, Form, FormGroup, FormControl, ControlLabel, Button } from 'react-bootstrap'; import { AlertList } from "react-bs-notifier"; import axios from 'axios'; class EditAbhanga ...
src/components/BackArrow.js
carlyleec/cc-react
import React from 'react'; import styled from 'styled-components'; import { browserHistory } from 'react-router'; const BackArrowButton = styled.button` display: ${props => (props.hasHistory > 1 ? 'inline-block' : 'none')}; border: none; background: none; vertical-align: middle; cursor: pointer; outline: n...
src/components/commonComponents/footer.js
toffee7/ReactStarterComponents
import React, { Component } from 'react'; const Footer = (props) => { return ( <footer className="footer-class"> <i className="fa fa-copyright fa-lg" aria-hidden="true"></i>2017&nbsp;Syed Tauseef Tanweer </footer> ); } export default Footer;
src/components/settings/SetRates.js
whphhg/vcash-ui
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { join } from 'path' import moment from 'moment' /** Ant Design */ import Button from 'antd/lib/button' import Switch from 'antd/lib/switch' import Tooltip from 'antd/lib/tooltip' /** Component */ ...
src/components/ChatList/Items/index.js
saitodisse/md-list
import React from 'react'; import {connect} from 'cerebral-view-react'; // import itensKeysComputed from '~/computed/itensKeysComputed'; import styles from './styles'; import Item from './Item'; import _ from 'lodash/fp'; export default connect({ is_ready: 'chatList.is_ready', // itemsKeys: itensKeysComputed(), },...
client/components/favorite/Searches.js
howardlykim/ruby-gem-search
import React from 'react' import FavoriteSearchesStore from '../../stores/FavoriteSearches' import { Link } from 'react-router-dom' class FavoriteSearches extends React.Component { constructor (props) { super(props) this.state = { favoriteSearches: FavoriteSearchesStore.getData() } } editFavoriteSearch (...
node_modules/react-router/es6/IndexLink.js
mrjkc/react-redux
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; }; import React from 'react'; import Link from './Link'; /** *...
src/components/CommentForm.js
s83/react-comments
import React from 'react'; import { connectReduxForm } from 'redux-form'; import { validateComment } from 'utils'; import { FORM_COMMENT_ID } from 'constants'; import { Input } from 'react-bootstrap'; import Spaces from 'components/Spaces'; import { Glyphicon, Button, ButtonToolbar, Panel } from 'react-bootstrap'; impo...
cmd/elwinator/src/components/NewChoiceView.js
13scoobie/choices
import React from 'react'; import { Link } from 'react-router'; import NavSection from './NavSection'; import { namespaceURL, experimentURL, paramURL } from '../urls'; import NewChoice from '../connectors/NewChoice'; const NewChoiceView = ({ params }) => { return ( <div className="container"> <div classNa...
src/App.js
kriml76/react-try
import React, { Component } from 'react'; import { Layout } from 'antd'; import './style/index.less'; import SiderCustom from './components/SiderCustom'; import HeaderCustom from './components/HeaderCustom'; import { receiveData } from './action'; import { connect } from 'react-redux'; import { bindActionCreators } fro...
app/javascript/mastodon/features/ui/components/modal_root.js
alarky/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import MediaModal from './media_modal'; import OnboardingModal from './onboarding_modal'; import VideoModal from './video_modal'; import BoostModal from './boost_modal'; import ConfirmationModal from './confirmation_modal'; import ReportModal from './report...
src/components/TextareaBox/TextareaBox.stories.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import TextareaBox from './TextareaBox'; import { wrapComponentWithContainerAndTheme, colors, } from "../styles"; function renderChapterWithTheme(theme) { return { info: ` Usage ~~~ import React ...
src/svg-icons/navigation/check.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationCheck = (props) => ( <SvgIcon {...props}> <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/> </SvgIcon> ); NavigationCheck = pure(NavigationCheck); NavigationCheck.displayName = 'Navigati...
packages/wix-style-react/stories/Colors/index.story.js
wix/wix-style-react
import React from 'react'; import { description } from 'wix-storybook-utils/Sections'; import { storySettings } from './storySettings'; import { Layout, Cell } from '../../src/Layout'; import colors from '../../src/colors.scss'; import Text from '../../src/Text'; import Box from '../../src/Box'; import rgba_to_hex8 fro...
src/routes/notFound/NotFound.js
quyetvv/react-starter-kit
/** * 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/ui/components/actions_modal.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
src/svg-icons/toggle/radio-button-checked.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleRadioButtonChecked = (props) => ( <SvgIcon {...props}> <path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3...
tmeister/static/src/release-notes/delete/delete-note.component.js
CanopyTax/toggle-meister
import React from 'react' import ScrollModal from 'common/modal/scroll-modal.component.js' import { makeStyles } from '@material-ui/core/styles' import { Icon, Typography } from '@material-ui/core' import Button from 'commonButton' import { useDeleteReleaseNote } from '../release-notes.hooks.js' const useStyles = make...
demo/Container.js
akofman/react-puppet
import React from 'react'; export default class Container extends React.Component { render() { console.log('Container render'); return ( <div> { this.props.children } </div> ); } }
src/MediaLeft.js
apkiernan/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import Media from './Media'; import { bsClass, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { /** * Align the media to the top, middle, or bottom of the media object. */ align: React.PropTypes.oneOf(['t...
fields/types/relationship/RelationshipColumn.js
creynders/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React.createClass({ displayName: 'Rel...
public/js/7B.js
ritchieanesco/frontendmastersreact
/* Routing Urls */ import React from 'react' const Landing = React.createClass({ render () { return ( <div className='landing'> <h1>My Landing</h1> <input type='text' placeholder='Search' /> <a>or Browse all</a> </div> ) } }) export default Landing
server/sonar-web/src/main/js/app/components/GlobalContainer.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
packages/material-ui-icons/src/AddShoppingCart.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AddShoppingCart = props => <SvgIcon {...props}> <path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z...
src/components/SocialLoginLink.js
react-auth/react-auth
import React from 'react'; import utils from '../utils'; import context from './../context'; export default class SocialLoginLink extends React.Component { state = { disabled: false }; _onClick(e) { e.preventDefault(); if (!this.state.disabled) { this.setState({ disabled: true }); con...
lib/components/App.js
iryan2/mash
import React, { Component } from 'react'; import LoginRegister from './LoginRegister'; let style = { alignItems: 'center', display: 'flex', height: '100%', justifyContent: 'center' }; class App extends Component { render() { return <div style={style}> <LoginRegister /> ...
src/index.js
cdelaorden/redux-ecs-game
import babelPolyfill from 'babel-polyfill' import ReactDOM from 'react-dom' import React from 'react' import gameStore from './create_store' import App from './containers/app' import { Provider } from 'react-redux' import { createSphereBody } from './engine/components/sphere_body' console.log(gameStore) //Create the...
src/PaginationButton.js
simonliubo/react-ui
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
docs/app/Examples/elements/Label/Groups/LabelExampleGroupSize.js
vageeshb/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleGroupSize = () => ( <Label.Group size='huge'> <Label>Fun</Label> <Label>Happy</Label> <Label>Smart</Label> <Label>Witty</Label> </Label.Group> ) export default LabelExampleGroupSize
src/components/waste-water/sidebar-layers/search/search-bar.js
impact-initiatives/reach-jor-zaatari-webmap
import React from 'react'; import messages from '../../../../translations/waste-water.js'; import store from '../../../../store/index.js'; import styles from '../../../../styles/index.js'; function onChange({ target }) { const { value } = target; store.dispatch({ type: (state) => ({ ...state, search: { ...
src/components/NotFound.js
kunal-mandalia/reactnd-project-readable
import React from 'react' import '../styles/NotFound.css' const getDisplayMessage = filterBy => { switch (filterBy) { case 'none': return `Lucky number one. Be the first poster!` case 'category': return `That category isn't looking very popular. Create a post for it to get it started.` case ...
game-of-life-react-parcel/src/index.js
LandRover/gym
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept() }
src/index.js
Jazmon/TESK-app
import 'core-js/fn/object/assign'; import 'materialize-css/sass/materialize.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/Parser/Hunter/Shared/Modules/Items/RootsOfShaladrassil.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHealingDone'; /** * Roots of Shaladrassil * Equip: Standing still causes you to...
src/components/panel/panel-block.js
bokuweb/re-bulma
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../../../build/styles'; import { getCallbacks } from '../../helper/helper'; export default class PanelBlock extends Component { static propTypes = { children: PropTypes.any, className: PropTypes.string, isAc...
src/static/index.js
AdrienAgnel/testDjangoApp
import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/createBrowserHistory'; import { authLoginUserSuccess } from './actions/auth'; import Root from './containers/Root/Root'; import configureStore from './store/configureStore'; const initialState = {}; const target = documen...
src/svg-icons/action/alarm-add.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmAdd = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4....
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultProps.js
JonathanUsername/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: DefaultProps = {}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaul...
stories/containers/channels/channel-create-summary.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { ChannelCreateSummary } from 'components/Channels' import { Provider } from '../../Provider' storiesOf('Containers.Channels', module) .addDecorator(story => <Provider story={story()} />) .addWithChapters('ChannelCreateSummary', { ch...
src/utils/defaultArrowRenderer.js
Khan/react-select
import React from 'react'; export default function arrowRenderer ({ onMouseDown }) { return ( <span className="Select-arrow" onMouseDown={onMouseDown} /> ); };
investninja-web-ui-admin/src/server.js
InvestNinja/InvestNinja-web-ui
import 'babel-polyfill'; import path from 'path'; import express from 'express'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; import expressJwt from 'express-jwt'; // import expressGraphQL from 'express-graphql'; // import jwt from 'jsonwebtoken'; import React from 'react'; import Rea...
components/Application.js
jeffhandley/fluxible-context
/*globals document*/ import React from 'react'; import Nav from './Nav'; import Home from './Home'; import About from './About'; import ApplicationStore from '../stores/ApplicationStore'; import provideContext from 'fluxible/addons/provideContext'; import connectToStores from 'fluxible/addons/connectToStores'; import ...
src/components/ChatApp/MessageSection/MessageSection.react.js
isuruAb/chat.susi.ai
import MessageComposer from '../MessageComposer.react'; import Snackbar from 'material-ui/Snackbar'; import MessageListItem from '../MessageListItem/MessageListItem.react'; import MessageStore from '../../../stores/MessageStore'; import React, { Component } from 'react'; import ThreadStore from '../../../stores/ThreadS...
step7-flux/node_modules/react-router/modules/Lifecycle.js
jintoppy/react-training
import warning from './routerWarning' import React from 'react' import invariant from 'invariant' const { object } = React.PropTypes /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On standard ...
app/javascript/mastodon/features/status/index.js
ikuradon/mastodon
import Immutable from 'immutable'; import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { createSelector } from 'reselect'; import { fetchStatus } from '../../actions/...
stories/components/Accordion.js
g-script/react-be-blaze
import { storiesOf } from '@kadira/storybook' import React from 'react' import { Accordion, AccordionItem } from '../../src' storiesOf('components/Accordion.js', module) .add('Accordion & AccordionItem', () => ( <div className='wrapper c-text'> <Accordion> <AccordionItem id='accordion-1' label='It...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-he...
examples/crna-kitchen-sink/storybook/stories/Button/index.android.js
rhalff/storybook
import React from 'react'; import PropTypes from 'prop-types'; import { TouchableNativeFeedback } from 'react-native'; export default function Button(props) { return ( <TouchableNativeFeedback onPress={props.onPress}>{props.children}</TouchableNativeFeedback> ); } Button.defaultProps = { children: null, o...
app/javascript/mastodon/components/loading_indicator.js
honpya/taketodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
app/components/HeaderButton.js
jastkand/vk-notifications
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import styles from './HeaderButton.css' export default (props) => { if (props.hidden) { return null } return ( <a onClick={ props.onClick } className={ styles.button } title={ props.title }> <FontAwesomeIcon...
src/components/Share/index.js
quran/quran.com-frontend
import React from 'react'; import { ShareButtons, generateShareIcon } from 'react-share'; import * as customPropTypes from 'customPropTypes'; const styles = require('./style.scss'); const { FacebookShareButton, TwitterShareButton } = ShareButtons; const FacebookIcon = generateShareIcon('facebook'); const TwitterIcon ...
packages/bonde-admin-canary/src/scenes/Logged/scenes/Tags/CreateUserTagsForm/CreateUserTagsForm.js
ourcities/rebu-client
import React from 'react' import { Button, Flexbox2 as Flexbox } from 'bonde-styleguide' import { Field, FormGraphQL } from 'components/Form' import UserTagsField from './UserTagsField' import CreateUserTags from './createUserTags.graphql' import updateCurrentUserTags from './updateCurrentUserTags' const CreateUserTag...
packages/react-error-overlay/src/components/Footer.js
appier/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { darkGray } from '../styles'; const footerStyle = { fontFamily: 'sans-serif', color:...
app/containers/NewStreamPage.js
lhall-adexos/LogSwarm
// @flow import React, { Component } from 'react'; import NewStream from '../components/NewStream'; export default class NewStreamPage extends Component { render() { return ( <NewStream /> ); } }
src/routes/dashboard/components/weather.js
liuweiGL/eastcoal_mgr_react
import React from 'react' import PropTypes from 'prop-types' import styles from './weather.less' function Weather ({ city, icon, dateTime, temperature, name }) { return (<div className={styles.weather}> <div className={styles.left}> <div className={styles.icon} style={{ backgroundImage: `url(${icon...
src/components/NavigationConfirmationModal/index.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import { Modal, Button, Alert } from 'patternfly-react' import { msg } from '_/intl' const NavigationConfirmationModal = ({ show, onYes, onNo }) => { const idPrefix = 'close-dialog-confim' return ( <Modal show={show}> <Modal.Header> <M...
src/svg-icons/social/person-add.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPersonAdd = (props) => ( <SvgIcon {...props}> <path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/> </...
src/parser/priest/shadow/modules/items/HeartOfTheVoid.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer from 'parser/core/Analyzer'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import ItemHealingDone from 'interface...
node_modules/react-icons/io/ios-personadd-outline.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosPersonaddOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.5 12v1h-2v2h-1v-2h-2v-1h2v-2h1v2h2z m-16.7 3.8z m12.6 12.6c1 0.4 4.1 1.6 4.1 4.1h-25c0-2.5 3.1-3.7 4.1-4.1s2.5-0.4 3.4-0.7c0.5-0.1 1.3-0.4 1.6-0.7s0-3...
src/containers/Playground/Board/index.js
mmazzarolo/tap-the-number
/* @flow */ /** * This components just renders the tiles in their correct positions. */ import React, { Component } from 'react'; import { View } from 'react-native-animatable'; import type { Tile } from 'src/types'; import { observer } from 'mobx-react/native'; import BoardTile from 'src/containers/Playground/BoardT...
app/app.js
anneback/react-quiz
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/plugins/NetworkPlugin/components/Table.js
whinc/xConsole
import React from 'react' import PropTypes from 'prop-types' import './Table.css' export default class Table extends React.Component { static propTyps = { entryies: PropTypes.arrayOf(PropTypes.any), // 点击条目的回调函数 // enrty => void onClickEntry: PropTypes.func } static defaultProps = { entries:...
examples/counter/src/App.js
Annevo/redux-eventually
/* eslint immutable/no-this: 0 */ /* eslint immutable/no-mutation: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { createCounterMergeAction } from 'redux-eventually'; import Node from './Containers/Node'; import './App.css'; const syncAction = createCounterMergeAction('DEMO'); class App extends ...
lib/Main.js
applegrain/enzyme-playground
import React from 'react'; import Buttons from './Buttons'; export default React.createClass({ getInitialState() { return { counter: 0 } }, handleClick(value = 1) { this.setState({ counter: this.state.counter + value }) }, render() { return ( <div className='hello-world'> <h1>Enz...
src/components/app.js
mesqfel/react-blog
import React, { Component } from 'react'; import Navbar from './navbar'; import Footer from './footer'; export default class App extends Component { render() { return ( <div> <Navbar /> {this.props.children} <Footer /> </div> ); } }
themes/genius/Genius 2.3.1 Bootstrap 4/React_Starter/src/components/Footer/Footer.js
davidchristie/kaenga-housing-calculator
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <footer className="app-footer"> <a href="https://genesisui.com">Genius</a> &copy; 2017 creativeLabs. <span className="float-right">Powered by <a href="https://genesisui.com">GenesisUI</a></span> ...
src/svg-icons/image/filter.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter = (props) => ( <SvgIcon {...props}> <path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1...
src/components/DismissKeyboardView.js
madtaras/reds
import React from 'react'; import { View, TouchableWithoutFeedback, Keyboard, } from 'react-native'; const DismissKeyboardHOC = Comp => ({ children, ...props }) => ( <TouchableWithoutFeedback onPress={Keyboard.dismiss}> <Comp {...props}> {children} </Comp> </TouchableWithoutFeedback> ); const ...
markbin/client/components/bins/bins_share.js
tpechacek/learn-react-native
import React, { Component } from 'react'; class BinsShare extends Component { onShareClick () { const email = this.refs.email.value; Meteor.call('bins.share', this.props.bin, email); } renderShareList() { return this.props.bin.sharedWith.map(email => { return (<button key={email} ...