path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Pots.js
MicheleV/da-beast
import React from 'react'; import Button from './Button'; import { potDesc } from '../constants/gardeningTypes'; const seedsButtons = (seeds, potId, plantAction) => { if (seeds.length === 0) { return ( <span>...but no seeds to plant...</span> ); } return seeds.map((seed) => { const text = `Plant a ${seed.n...
app/index.js
dkfann/cinesythesia
import React from 'react'; import ReactDOM from 'react-dom'; import routes from '../config/routes'; ReactDOM.render( routes, document.getElementById('app') );
src/components/users/Username.js
mg4tv/mg4tv-web
import * as _ from 'lodash' import React from 'react' import {compose} from 'recompose' import {withLoading, withNotFound} from '../hocs' import LoadingView from '../LoadingView' import NotFoundView from '../NotFoundView' const enhance = compose( withLoading( ({users, userId}) => !(_.has(users, userId)), L...
src/Results/Beers.js
Jhong098/BeerFinder
import React from 'react'; import Api from '../utils/api.js'; import Slider from '../utils/Slider.js'; import Locator from '../Search/Locator.js'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import Loader from 'react-loaders'; export default class Beers extends React.Component { construc...
src/index.js
tkaetzel/sympho.net
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
storybook/config.js
tcitworld/mastodon
import { configure, setAddon } from '@kadira/storybook'; import IntlAddon from 'react-storybook-addon-intl'; import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { addLocaleData } from 'react-intl'; import en from 'react-intl/locale-data/en'; import '../app/assets/stylesheets/compone...
pages/post.js
victorkane/blog-simple-next
import React from 'react' import 'isomorphic-fetch' import Header from '../components/header' import { apiHost } from '../appconfig.js' export default class Post extends React.Component { static async getInitialProps ({pathname, query}) { // eslint-disable-next-line no-undef //console.log(query.id) con...
examples/hello-world/src/index.js
BrunoAlcides/react-datepicker
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
example/index.android.js
samcorcos/react-native-calendar
import React from 'react'; import { AppRegistry } from 'react-native'; import App from './App'; const CalendarExample = () => { return <App />; }; AppRegistry.registerComponent('CalendarExample', () => CalendarExample);
src/components/Feedback/Feedback.js
albperezbermejo/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
fields/types/date/DateColumn.js
qwales1/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { co...
src/svg-icons/action/assignment-return.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentReturn = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45...
app/javascript/flavours/glitch/components/notification_purge_buttons.js
Kirishima21/mastodon
/** * Buttons widget for controlling the notification clearing mode. * In idle state, the cleaning mode button is shown. When the mode is active, * a Confirm and Abort buttons are shown in its place. */ // Package imports // import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages,...
src/components/chart.js
kevinsangnguyen/WeatherAPIReactRedux
import _ from 'lodash'; import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; function average(data) { return _.round(_.sum(data)/data.length) } export default (props) => { return ( <div> <Sparklines height={120} width={180} data={props.data...
examples/todo-react-es6-wo-decorators/src/app/filter.js
rintoj/statex
import React from 'react' import { SetFilterAction } from '../action/todo-action' import { State } from 'statex' export default class Filter extends React.Component { subscriptions = [] constructor(props) { super(props) this.state = { filter: undefined} } componentDidMount() { this.subscriptions...
src/svg-icons/image/blur-off.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
docs/app/Examples/elements/Button/Variations/ButtonExamplePositive.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExamplePositive = () => ( <div> <Button positive>Positive Button</Button> </div> ) export default ButtonExamplePositive
src/containers/Asians/TabControls/PreliminaryRounds/EnterRoundResults/Ballots/Instance/InstanceLabel.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import withStyles from 'material-ui/styles/withStyles' import Typography from 'material-ui/Typography' import returnWinnerStyle from './returnWinnerStyle' import returnDissentingAdjudicatorStyle from './returnDissentingAdjudicatorStyle' const styles = t...
mlflow/server/js/src/model-registry/components/ModelListPage.js
mlflow/mlflow
import React from 'react'; import { ModelListView } from './ModelListView'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import RequestStateWrapper from '../../common/components/RequestStateWrapper'; import { getUUID } from '../../common/utils/ActionUtils'; import Utils from '../../common/...
src/pages/GraphQL.js
marktani/react-native-express-1
import React from 'react' import markdown from 'markdown-in-js' import markdownOptions from '../utils/MarkdownOptions' import Page from './Page' import { WebPlayer, PageHeader } from '../components' const simpleQuery = `import React, { Component } from 'react' import { AppRegistry, Image, View, ActivityIndicator, Sty...
src/components/common/svg-icons/device/data-usage.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDataUsage = (props) => ( <SvgIcon {...props}> <path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53...
src/parser/monk/brewmaster/modules/spells/BlackoutCombo.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'...
src/components/NotFound.js
joeYeager/personal-site
import React from 'react'; import Breakpoints from './Breakpoints'; const NotFound = () => { return ( <div id="content"> <Breakpoints count={11}/> <div id="div404"> <img id="hal" alt="Not Found" src={require("../assets/hal9000.png")} hspace="0" vspace="0"/> ...
src/svg-icons/av/movie.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMovie = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/> </SvgIcon> ); AvMovie = pure(AvMovie); Av...
src/components/StickyNote/StickyNote.js
arvigeus/studentlife
// @flow import React from 'react'; import Relay from 'react-relay'; import s from './StickyNote.css'; type JokeType = { joke: { text: ?string } } function StickyNote({ joke: { text } }: JokeType) { return ( <div className={s.root} dangerouslySetInnerHTML={{ __html: text || 'Няма налични шеги' }} /> ...
src/screens/Settings.js
CiriousJoker/LegacyManager
import React, { Component } from 'react'; import Button from 'material-ui/Button'; import TextField from 'material-ui/TextField'; import Input from 'material-ui/Input/Input'; import Paper from 'material-ui/Paper'; import Grid from 'material-ui/Grid'; import Typography from 'material-ui/Typography'; import Divider from ...
src/app.js
ymkz/syncedTabs
import React from 'react' import ReactDOM from 'react-dom' import App from './components/app' ReactDOM.render( <App />, document.getElementById('root') )
blueocean-material-icons/src/js/components/svg-icons/image/filter-3.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter3 = (props) => ( <SvgIcon {...props}> <path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1...
src/svg-icons/navigation/chevron-left.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft = pure(NavigationChevronLeft); NavigationChevronLeft.dis...
src/px-branding-bar/index.js
jonniespratley/px-components-react
import React from 'react'; import PredixLogo from './px-predix-svg-logo'; import Logo from './px-ge-svg-logo'; import styles from './px-branding-bar.scss'; //https://www.predix-ui.com/#/elements/px-branding-bar export default ({ title = 'Predix Design System', powered = 'Powered by', children }) => ( <div className='...
Js/Ui/Components/Filters/Price.js
Webiny/Webiny
import React from 'react'; import Webiny from 'webiny'; class Number extends Webiny.Ui.Component { } Number.defaultProps = { format: null, default: '-', value: null, renderer() { try { return <span>{Webiny.I18n.price(this.props.value, this.props.format)}</span>; } catch (e)...
src/routes.js
anvk/redux-portal-boilerplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import params from 'query-params'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { fixUrl } from './utils/utils.js'; import { Dashboard, NotFoundPage } from './comp...
src/components/Post/Post.js
bapti/blog
// @flow strict import React from 'react'; import { Link } from 'gatsby'; import Author from './Author'; import Comments from './Comments'; import Content from './Content'; import Meta from './Meta'; import Tags from './Tags'; import styles from './Post.module.scss'; import type { Node } from '../../types'; type Props...
examples/official-storybook/components/FlowTypeButton.js
rhalff/storybook
// @flow import React from 'react'; /* eslint-disable react/no-unused-prop-types,react/require-default-props */ const Message = {}; type PropsType = { /** A multi-type prop to be rendered in the button */ label: string, /** Function to be called when the button is clicked */ onClick?: Function, /** Boolean...
src/js/components/GalleryImages/Index.js
appdev-academy/appdev.academy-react
import React from 'react' import { inject, observer } from 'mobx-react' import ConfirmationDialog from '../ConfirmationDialog' import GreenButton from '../Buttons/Green' import Row from './Row' @observer export default class Index extends React.Component { constructor(props) { super(props) this.state = {...
packages/bonde-styleguide/src/content/IconColorful/svg/Power.js
ourcities/rebu-client
import React from 'react' const Icon = () => ( <svg xmlns='http://www.w3.org/2000/svg' width='60' height='43' viewBox='0 0 60 43'> <g fill='none' fillRule='evenodd'> <g fill='#E09' transform='translate(9.6)'> <ellipse cx='20' cy='19.907' opacity='.297' rx='20' ry='19.907' /> <ellipse ...
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
hejunbinlan/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
src/svg-icons/communication/stay-primary-portrait.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> );...
src/pages/todo/components/header.js
mvtnghia/web-boilerplate
// @flow import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { addTodo } from '../actions'; import TodoTextInput from './todo-text-input'; export type Props = { addTodo: Function, }; function Header(props: Props) { return ( <div className="heade...
components/Navbar.js
InnoD-WebTier/calwtcrew
import React, { Component } from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; // eslint-disable-line import FontAwesome from 'react-fontawesome'; import Headroom from 'react-headroom'; import classNames from 'classnames'; import logo from '../assets/images/logo.png'; expor...
src/sites/launchpads.js
cosmowiki/cosmowiki
import React from 'react'; import LaunchpadsComponent from '../components/launchpads'; export default class Launchpads { static componentWithData(_, appUrl) { return <LaunchpadsComponent appUrl={appUrl} />; } static fromRawData() {} }
app/javascript/mastodon/components/avatar_overlay.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
caseStudy/ui/src/App.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/components/Sidebar.js
Shashank1706/olep-serverless
import React from 'react'; import { Link } from 'react-router-dom'; import { Navbar } from 'react-bootstrap'; export default (props) => ( <div className={props.visibility ? "overlay visible" : "overlay notvisible"} onClick={props.onClick} > <div className="sidebar"> <Navbar className="topbar" fluid collapse...
src/routes/Synthesizer/components/Controls.js
prestonbernstein/react-redux-synthesizer
import React from 'react' const Controls = (props) => ( <div id='Controls'> <div className='control'> <label htmlFor='waveform'> Waveform </label> <select id='waveform' onChange={props.changeWaveform} value={props.waveform} > { props.wavef...
src/containers/Contact.js
sogalutira/PollerBears
import React, { Component } from 'react'; class Contact extends Component { render(){ return( <div className="contact-page"> <article> <h2>Contact Us</h2> <section> <h3>Chief Election Officer</h3> Scott T. Nag...
fields/types/geopoint/GeoPointColumn.js
dryna/keystone-twoje-urodziny
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
react-ui/src/components/NavDropdownComponent/NavDropdownComponent.js
hokustalkshow/find-popular
import React, { Component } from 'react'; import { NavDropdown, MenuItem } from 'react-bootstrap'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; function StandardLi({item}) { return <li className="navbar-text" >{item.menuItemLabel}</li> } class NavDropdownComponent extends Component { ...
src/index.js
otsoaUnLoco/wolf-chess
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import BoardWrapper from './BoardWrapper'; ReactDOM.render( <BoardWrapper />, document.getElementById('root'), );
src/client/scenes/User/index.js
kettui/webcord-web-app
import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import { autobind } from 'core-decorators'; import classNames from 'classnames/bind'; import { Segment, Message } from 'semantic-ui-react'; import { MessageLoading, TwitchSearch, Stream } from 'components/'; import UserInfo from '...
src/index.js
scenario-generator/frontend
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { configureStore } from './store/configureStore'; import Root from './containers/Root' import * as serviceWorker from './serviceWorker'; const st...
examples/counter/index.js
jasonals/redux-devtools
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
blueprints/view/files/__root__/views/__name__View/__name__View.js
kolpav/react-redux-starter-kit
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
app/javascript/mastodon/features/ui/components/columns_area.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import { link...
app/components/Login/Social.js
Jberivera/kanban-app
import React from 'react'; import style from './Login.scss'; import classNames from 'classnames/bind'; const css = classNames.bind(style); const Social = ({ onFacebookLogin }) => { return ( <div> <div className={ css('fb-btn') } onClick={onFacebookLogin}>Facebook</div> </div> ); }; export default ...
src/components/NotFoundPage.js
michaelgodshall/fullstack-challenge-frontend
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/js/components/Servers.js
jaedb/Iris
import React from 'react'; import { Route, Switch, useParams, useHistory } from 'react-router-dom'; import { useSelector, useDispatch } from 'react-redux'; import Link from './Link'; import Icon from './Icon'; import TextField from './Fields/TextField'; import { indexToArray } from '../util/arrays'; import { But...
app/components/IssueIcon/index.js
gihrig/react-boilerplate-logic
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
js/components/location_bar.js
batter/react-weather-widget
import React from 'react'; const { Component, } = React; class LocationBar extends Component { render () { return ( <div id='location-bar'> <h3>Weather for {this.props.location}</h3> </div> ); } }; export default LocationBar;
src/Homepage/Login/Loginform/Loginform.js
MLsandbox/MLsandbox
import React from 'react'; import { Link } from 'react-router-dom'; import Styles from '../Login.css'; import Loader from '../Loader'; import Body from './Loginbody'; import { FormGroup, ControlLabel, FormControl, Modal, Button } from 'react-bootstrap'; var renderLoad = (authState, props) => { if (authState) { r...
client/src/Components/FacetContainer/FacetContainer.js
CrashsLanding/petfinder-searcher
import React from 'react'; import './FacetContainer.css'; import Facet from '../Facet/Facet'; import _ from 'lodash'; class FacetContainer extends React.Component { constructor(props) { super(props); this.state = { facets: {} }; } toggleAndFacet(facetName, e) { let the_state = _.clone(thi...
src-client/scripts/truckinfo.js
Dolpator/iLuggit
import Backbone from 'backbone' import React from 'react' import ReactDOM from 'react-dom' import ACTIONS from './ACTiONS.js' import STORE from './STORE.js' import AppController from './lugg-view-controller.js' const showTruckInfo = React.createClass({ render: function (){ return ( <div className=...
lib/components/blockcontrol.js
pairyo/kattappa
import React from 'react'; import Action from '../utils/action'; class BlockControl extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); this.getToolbar = this.getToolbar.bind(this); } handleClick(e) { //console.log(e); var nodes = Arr...
pages/react.js
lukevance/personal_site
import React from 'react' export default class ReactComponent extends React.Component { constructor () { super() this.state = { count: 0 } } handlePlusClick () { this.setState({ count: this.state.count + 1 }) } handleMinusClick () { this.setState({ count: this.state.count - 1 }) } rend...
src/components/trends/smbg/FocusedSMBGPointLabel.js
tidepool-org/viz
/* * == BSD2 LICENSE == * Copyright (c) 2016, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
src/pages/profile/profile.js
dejour/react-elm
import React, { Component } from 'react'; import Head from '../../components/header/head' import FootGuide from '../../components/footer/footer' import './profile.css' import {imgBaseUrl} from '../../config/mUtils' import { connect } from "react-redux"; import { BrowserRouter as Router, Route, Link } from 'react-...
src/parser/shaman/elemental/modules/talents/ElementalBlast.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { ELEMENTAL_BLAST_IDS } from '...
src/collections/Message/MessageContent.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps } from '../../lib' /** * A message can contain a content. */ function MessageContent(props) { const { children, className, content } = props const classes...
fixtures/packaging/systemjs-builder/dev/input.js
ArunTesco/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
src/parser/warlock/destruction/modules/azerite/RollingHavoc.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import StatTracker from 'parser/shared/modules/StatTracker'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; import AzeritePowerStatistic from 'interface/statistics/AzeritePowerStatistic'; import Borin...
example/src/screens/types/Drawer.js
okarakose/react-native-navigation
import React from 'react'; import { StyleSheet, View, Text } from 'react-native'; class MyClass extends React.Component { render() { return ( <View style={styles.container}> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, wi...
web/components/Header/index.js
earaujoassis/watchman
import React from 'react'; import './style.css'; const header = () => { return ( <div role="header" className="header-root" style={{ backgroundImage: "url('/assets/971.jpg')" }}> <h1 className="header-title">Watchman</h1> </div> ); }; export default header;
src/svg-icons/image/filter-1.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter1 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> ...
client/src/assignment/InstructionList.js
ziel5122/autograde
import PropTypes from 'prop-types'; import React from 'react'; const InstructionList = ({ bullet, instructions, style, }) => ( <div style={style}> { instructions.map((instruction, index) => ( <div key={index}> {bullet} {instruction} </div> )) } </div> )...
main.js
sloiselle/reptile
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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 'babel-polyfill'; im...
src/components/operations/operation-details.js
FranckCo/Operation-Explorer
import React from 'react'; import { Link } from 'react-router-dom'; import { sparqlConnect } from 'sparql-connect'; import NotFound from '../not-found' import Spinner from 'components/shared/spinner' import D, { getLang } from 'i18n' import { seriesLink } from './routes'; import { tidyString } from 'utils/string-utils'...
src/svg-icons/device/location-searching.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationSearching = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-...
src/svg-icons/notification/bluetooth-audio.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationBluetoothAudio = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-...
app/javascript/mastodon/components/setting_text.js
RobertRence/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/components/mask/mask.js
n7best/react-weui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * screen mask, use in `Dialog`, `ActionSheet`, `Popup`. * */ class Mask extends React.Component { static propTypes = { /** * Whather mask should be transparent (no color) ...
client/src/templates/Challenges/components/CompletionModal.js
BhaveshSGupta/FreeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import noop from 'lodash/noop'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Button, Modal } from '@freecodecamp/react-bootstrap'; import { useStaticQuery, graphql } from 'gatsby'; import ga from...
src/svg-icons/content/reply-all.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReplyAll = (props) => ( <SvgIcon {...props}> <path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReplyAll = pure(ContentReplyAll); Conte...
src/svg-icons/image/iso.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
client/src/pages/portfolio/investmentForm/DatePicker_2.js
Antholimere/FyctoView
import React from 'react'; import TextField from 'material-ui/TextField'; function DatePickers(props) { const { input, meta: {touched, error} } = props return ( <div> <TextField id="date" label="Date" type="date" style={{ width: 200, marginTop: 16 }} ...
node_modules/react-router/modules/RouteContext.js
WatkinsSoftwareDevelopment/HowardsBarberShop
import warning from './warning' import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. *...
app/javascript/mastodon/features/list_editor/components/edit_list_form.js
h3zjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
node_modules/react-bootstrap/es/Thumbnail.js
ivanhristov92/bookingCalendar
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/Header.js
tehfailsafe/portfolio
import React from 'react'; import Reel from './Reel'; import particles from 'particles.js'; const Header = React.createClass({ getInitialState(){ return({ playing: false }) }, componentDidMount(){ particlesJS.load('particles-js', 'assets/particles.json'); }, togglePlay(){ this.setState...
src/components/SearchBox/SearchBox.js
nbschool/ecommerce_web
import React from 'react'; import PropTypes from 'prop-types'; import SearchBar from '../SearchBar'; import DropDownList from '../DropDownList'; class SearchBox extends React.Component { constructor(props) { super(props); this.state = { isActive: false, query: '', }; this.updateInputStat...
src/svg-icons/image/adjust.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAdjust = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 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 8zm3-8c0 1.66-1.34 3-3 3s-3-1.3...
example/examples/StaticMap.js
Nabobil/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, ScrollView, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_...
src/containers/Home/Home.js
svsool/react-redux-universal-hot-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; import config from '../../config'; import Helmet from 'react-helmet'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // req...
packages/ringcentral-widgets/components/ConversationPanel/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss'; import SpinnerOverlay from '../SpinnerOverlay'; import ConversationMessageList from '../ConversationMessageList'; import LogButton from '../LogButton'; import ContactDis...
server/sonar-web/src/main/js/apps/component-measures/components/IconHistory.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
webapp/docs/components/Topbar/style.js
oorococo/smcoco_com
import React from 'react' const rule = ` .topbar { position: absolute; width: 100%; left: 0; top: 0; z-index: 9999; background-color: rgba(0,0,0,.15); border-bottom: 1px solid rgba(0,0,0,.2); } .topbar-link { color: #fff; display: inline-block; padding: 3px 10px; te...
src/svg-icons/action/invert-colors.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInvertColors = (props) => ( <SvgIcon {...props}> <path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
app/components/ForecastDay.js
paul-uu/weather
import React from 'react'; const days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'], months = ['January','February','March','April','May','June','July','August','Spetember','October','November', 'December']; const dateStyle = { float: 'left' }; export default class ForecastDay extends...
docs/src/pages/premium-themes/onepirate/modules/components/Typography.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { capitalize } from '@material-ui/core/utils'; import MuiTypography from '@material-ui/core/Typography'; const styles = (theme) => ({ markedH2Center: { height: 4, width: 73, displa...
app/components/Header.js
alexeyraspopov/evo
import React from 'react'; import ActionButton from 'components/ActionButton'; export default function Header() { return ( <header className="header"> <ActionButton type="menu" /> <h2 className="header-title">Users</h2> <ActionButton type="search" /> <ActionButton type="more_vert" /> </header> ); }