path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
storybook/stories/index.js | synapsestudios/draftjs-editor | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import SetStateExample from './SetStateExample';
import '../../styles/index.css';
storiesOf('<SynapseDraft />', module).add('setState Example (default)', () => (
<div>
<style>
{`
html {
box-sizing: border-box;
... |
chargen-app/src/homeworlds.js | TransactCharlie/dark-heresy-chargen | import React from 'react';
import {SimpleListChooser} from './standard_components';
export const HOMEWORLDS = [
"FERAL",
"HIVE",
"HIGHBORN",
"DEATHWORLD"
];
export const HOMEWORLD_DETAILS = {
FERAL: {
display_text: "Feral World",
description: "Primitive low tech world where the strong survive and fe... |
src/svg-icons/navigation/more-vert.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreVert = (props) => (
<SvgIcon {...props}>
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"... |
docs/app/Examples/views/Item/Variations/ItemExampleAlignment.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const ItemExampleAlignment = () => (
<Item.Group>
<Item>
<Item.Image size='small' src='http://semantic-ui.com/images/wireframe/image.png' />
<Item.Content verticalAlign='top'>
<Item.Header>Top Aligned</Item.Header>
</It... |
src/svg-icons/maps/layers.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayers = (props) => (
<SvgIcon {...props}>
<path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"/>
</SvgIcon>
);
MapsLayers = pure(MapsLayer... |
tp-3/marisol/src/components/pages/profesores/ProfesoresPage.js | jpgonzalezquinteros/sovos-reactivo-2017 | /* eslint-disable import/no-named-as-default */
import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ProfesorListado from './listado/ProfesorListado';
import ProfesorForm from './form/ProfesorForm';
class ProfesoresPage extends React.Component {
rend... |
src/svg-icons/action/assignment-return.js | andrejunges/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... |
ui/src/views/devices/DeviceActivation.js | brocaar/lora-app-server | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { withStyles } from "@material-ui/core/styles";
import Typograhy from "@material-ui/core/Typography";
import Card from '@material-ui/core/Card';
import CardContent from "@material-ui/core/CardContent";
import TextField from... |
src/svg-icons/action/account-box.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBox = (props) => (
<SvgIcon {...props}>
<path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3... |
linksa/Operationc.js | liuhui219/linksa | import React from 'react';
import {
View,
StyleSheet,
Navigator,
TouchableOpacity,
TouchableHighlight,
Text,
ScrollView,
ActivityIndicator,
InteractionManager,
Dimensions,
BackAndroid,
ToastAndroid,
Image,
RefreshControl,
ListView,
} from 'react-native';
import ScrollableTabView, { DefaultTabBa... |
src/containers/video/addVideoInBoard.js | motion123/mbookmakerUI | /**
* Created by tomino on 17/03/06.
*/
import React from 'react'
import { connect } from 'react-redux'
import AddVideoInBoard from '../../components/video/addVideo'
import * as AddVideo from '../../actions/addVideo'
function mapStateToProps(state) {
return {
userId: state.app.userId,
}
}
// clickでactionを飛ば... |
src/components/app.js | harshattray/w_track | import React, { Component } from 'react';
import SearchBar from '../containers/search_bar';
import WeatherList from '../containers/weather-list';
export default class App extends Component {
render() {
return (
<div>
<SearchBar />
<WeatherList />
</div>
);
}
}
|
src/components/sky.js | Zeukkari/aframe-react-experiment | import 'aframe';
import {Entity} from 'aframe-react';
import React from 'react';
const Sky = (props) => {
return <Entity
primitive="a-sky"
scale="-0.5 0.6 0.5"
height="2048"
radius="30"
src="#skyTexture"
theta-length="90"
wi... |
src/example/Header.js | halhenke/jade-react-loader-example | import React from 'react';
import styles from './Header.css';
import jade from './jade/header.jade';
export default class Header extends React.Component {
render() {
return jade({styles});
}
}
|
examples/decorators/src/App.js | gaearon/react-hot-loader | import React from 'react';
import { hot } from 'react-hot-loader';
import Counter from './Counter';
const App = () => (
<h1>
Hello, world.<br />
<Counter />
</h1>
);
export default hot(module)(App);
|
src/components/EquipmentItem/EquipmentItem.js | DaveSpringer/bmg-rap-sheets | import React from 'react'
import EquipmentTrait from './EquipmentTrait'
import './style/EquipmentItem.scss'
class EquipmentItem extends React.Component {
render () {
let equipment = this.props.equipment
let crewsArea = ''
if (equipment.crewName !== undefined) {
crewsArea = (
<span classNam... |
src/index.js | stefuhnee/moments | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import firebase from 'firebase';
import App from './components/app';
ReactDOM.render(<App />, document.getElementById('app'));
|
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | opichals/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
render () {
var announcements = COURSES[this.props.params.courseId].announcements;
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcemen... |
src/App.js | Dermah/spooky-timer | import React from 'react';
import {compose, branch, renderComponent} from 'recompose';
import {BrowserRouter, withRouter} from 'react-router-dom';
import {IntlProvider, addLocaleData} from 'react-intl';
import Prepare from './pages/Prepare';
import Countdown from './pages/Countdown';
import './App.css';
import mess... |
Rate.UI/app/components/Footer.js | tanos90/Rate | import React from 'react';
export default class Footer extends React.Component {
getYear = () => new Date().getFullYear();
render() {
return (
<footer>
<div class="row">
<div class="col-lg-12">
<p>Copyright © Your Website {... |
pootle/static/js/auth/containers/Auth.js | phlax/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { connect } from 'react-... |
scene/CodeCheckScene.js | withwind318/RNAppDemos | import React, { Component } from 'react';
import {
StyleSheet,
ScrollView,
TouchableOpacity,
View,
Text,
} from 'react-native';
import { StackNavigator } from 'react-navigation';
import AnimSpinScene from './AnimSpinScene';
import AnimatedTimingScene from './AnimatedTimingScene';
import AnimatedSpringScene ... |
app/components/App.js | daiyingheng/dayinhen | import React from 'react';
import Navbar from './Navbar';
import Footer from './Footer';
import Top from './Top';
class App extends React.Component {
render() {
return (
<div>
<Navbar history={this.props.history} />
<Top />
{this.props.children}
<Footer />
</div>
)... |
js/AsyncRoute.js | PaquitoSoft/complete-intro-to-react | import React from 'react';
const { object } = React.PropTypes;
const AsyncRoute = React.createClass({
propTypes: {
props: object,
loadingPromise: object
},
getInitialState () {
return {
loaded: false
};
},
componentDidMount () {
this.props.loadingPromise.then(module => {
thi... |
app/javascript/mastodon/features/community_timeline/index.js | PlantsNetwork/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshCommunityTimeline,
... |
frontend/containers/NotFound.js | relekang/accio | import React from 'react';
export default () => (
<h4>Four o four, you might say</h4>
);
|
modules/RouteContext.js | mozillo/react-router | 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.
*/
const RouteContext = {
prop... |
src/client/components/hoc/AdressBar/withTagsFromUrl.hoc.js | DBCDK/content-first | import React from 'react';
import {connect} from 'react-redux';
import {createSelector} from 'reselect';
import {isEqual, flatten} from 'lodash';
import {filtersMapAll} from '../../../redux/filter.reducer';
import {HISTORY_REPLACE} from '../../../redux/middleware';
import {getFullRange} from '../../../utils/taxonomy';
... |
src/content/fields/Field.js | jessepollak/command | import $ from 'jquery'
import rangy from 'rangy'
import 'content/vendor/jquery.rangyinputs'
import 'content/vendor/jquery.caret'
import caretToEnd from 'caret-to-end'
import * as At from 'content/lib/at'
import React from 'react'
import ReactDOM from 'react-dom'
import * as Types from 'content/types'
import * as Comma... |
src/components/PersonalAreaAddressData/PersonalAreaAddressData.js | nbschool/ecommerce_web | import React from 'react';
import './PersonalAreaAddressData.css';
const PersonalAreaAddressData = () => (
<section className="PersonalAreaAddressData">
<h1>Modifica i tuoi dati di spedizione</h1>
</section>
);
export default PersonalAreaAddressData;
|
app/routes/index.js | dleszcz/react-static-boilerplate | import React from 'react';
import { Route } from 'react-router';
import Root from './root.component';
import HomeRoute from './home.component';
import AboutRoute from './about';
import ContactRoute from './contact';
export default (
<Route component={Root}>
<Route path='/' component={HomeRoute} />
<Rout... |
packages/reactor-kitchensink/src/examples/Layouts/form/form.js | dbuhrman/extjs-reactor | import React from 'react';
import { Container, Panel, FormPanel, TextField } from '@extjs/ext-react';
export default function FormLayoutExample() {
return (
<Container padding={Ext.os.is.Phone ? 20 : 30}>
<Panel shadow ui="instructions" margin="0 0 30 0">
<div>
... |
app/App.js | Tmarty/legend-of-the-javascript-dragon | import React from 'react';
import styles from './App.css';
import Header from './Header';
import Menu from './Menu';
import Locations from './Locations';
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {location: Locations.town};
}
render() {
return... |
src/svg-icons/image/crop-original.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (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-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
scripts/index.js | wbowling/react-chart-test | import React from 'react';
import App from './App';
React.render(<App />, document.getElementById('root'));
|
src/components/header/index.js | ianmcgregor/mcgregor.codes | import React from 'react';
import styled from 'styled-components';
import Menu from '../menu';
import {
media,
marginMobile,
marginTablet,
marginDesktop,
menuHeight
} from '../../styles';
const Header = styled.header`
width: 100%;
height: calc(${marginMobile * 4}vw + ${menuHeight}px);
... |
client/src/app/components/forms/inputs/Timepicker.js | zraees/sms-project | import React from 'react'
import 'script-loader!bootstrap-timepicker/js/bootstrap-timepicker.min.js'
export default class Timepicker extends React.Component {
componentDidMount() {
$(this.refs.input).timepicker()
}
render() {
return (
<input type="text" {...this.props} ref="input"/>
)
}
} |
src/components/Weui/msg/msg.js | ynu/res-track-wxe | /**
* Created by jf on 15/11/4.
*/
import React from 'react';
import classNames from 'classnames';
import {Button} from '../button/index';
import Icon from '../icon/index';
class Msg extends React.Component {
static propTypes = {
type: React.PropTypes.string,
buttons: React.PropTypes.array
... |
src/svg-icons/device/brightness-auto.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessAuto = (props) => (
<SvgIcon {...props}>
<path d="M10.85 12.65h2.3L12 9l-1.15 3.65zM20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM14.3 ... |
docs/app/Examples/modules/Dropdown/Content/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DropdownContentExamples = () => (
<Example... |
src/svg-icons/maps/hotel.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsHotel = pure(MapsHot... |
src/Pages/Search.js | thrawny/hscards | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
Button,
ListGroup,
ListGroupItem,
Image,
Input,
Grid,
Row,
Col,
PageHeader,
Panel
} from 'react-bootstrap';
import { fetchSearch } from '../actions'
import SearchItem from '../components/SearchItem';
class... |
src/browser/lib/logRenderTime.js | blueberryapps/este | import Component from 'react-pure-render/component';
import React from 'react';
// When UI renders thousands components, it's useful to check render time.
// Example:
// @logRenderTime
// export default class App extends Component {}
export default function logRenderTime(BaseComponent) {
return class LogRenderTim... |
docs/src/GridPage.js | jhernandezme/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import grid from '../../examples/Grid';
class GridPage extends React.Component... |
techCurriculum/ui/solutions/4.7/src/components/Message.js | jennybkim/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/Result/Question/Responses/Bar.js | cityofsurrey/polltal-app | import React from 'react'
import PropTypes from 'prop-types'
import Radium from 'radium'
import theme from 'theme'
const styles = {
root: percentage => ({
maxWidth: 150,
width: 150 * percentage,
height: 24,
borderRadius: 100,
backgroundColor: theme.color.blue.primary,
}),
}
const Bar = ({ per... |
src/app/components/navbar.js | webcoding/soapee-ui | import React from 'react';
import Reflux from 'reflux';
import cx from 'classnames';
import {Link, State} from 'react-router';
import NavLink from 'components/navLink';
import ButtonUserNotifications from 'components/buttonUserNotifications';
import authStore from 'stores/auth';
export default React.createClass( {
... |
fields/types/textarray/TextArrayFilter.js | joerter/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly' },
{ label: 'Begins with', value: 'beginsWith' },
{ label: 'Ends with', value: 'endsWith'... |
internals/templates/homePage/homePage.js | KraigWalker/frontendfriday | /*
* 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... |
client/extensions/woocommerce/woocommerce-services/components/weight-field/index.js | Automattic/woocommerce-services | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
/**
* Internal dependencies
*/
import FormFieldset from 'components/forms/form-fieldset';
import FormLabel from 'components/forms/form-label';
import FieldError from '.... |
app/Index.js | rakasiwi23/currency-converter | import React from 'react';
import EStyleSheet from 'react-native-extended-stylesheet';
import { Provider } from 'react-redux';
import Navigator from './config/routes';
import { AlertProvider } from './components/Alert';
import store from './config/store';
EStyleSheet.build({
$primaryBlue: '#4f6d7a',
$primaryOrang... |
client/src/components/shared/Icons/Twitter.js | FreeCodeCampBA/freecodecampba.github.io | import React from 'react'
const TwitterIcon = props => (
<svg viewBox="0 0 24 24" {...props}>
<title>{'Twitter icon'}</title>
<path d="M23.954 4.569a10 10 0 0 1-2.825.775 4.958 4.958 0 0 0 2.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 0 0-8.384 4.482C7.691 8.094 4.066 6.13 1.64 3.161a4.822 4.822 0 ... |
src/svg-icons/places/room-service.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRoomService = (props) => (
<SvgIcon {...props}>
<path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"... |
renderer/components/Syncing/Address.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import copy from 'copy-to-clipboard'
import { Flex } from 'rebass/styled-components'
import { FormattedMessage, injectIntl } from 'react-intl'
import { Button, QRCode, Spinner, Text } from 'components/UI'
import messages from './messages'
import { intlShape }... |
tests/Validation-spec.js | etshi/optiopay-form | import React from 'react';
import TestUtils from 'react-dom/test-utils';
import Formsy, { withFormsy } from './..';
import { InputFactory } from './utils/TestInput';
import immediate from './utils/immediate';
import sinon from 'sinon';
class MyTest extends React.Component {
static defaultProps = { type: 'text' };... |
src/TabContext.js | glenjamin/react-bootstrap | import React from 'react';
const TabContext = React.createContext(null);
export default TabContext;
|
src/components/bower/plain/BowerPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './BowerPlain.svg'
/** BowerPlain */
function BowerPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'BowerPlain' + ' ' + className}
... |
ui/js/components/popular/PopularPetitionComponent.js | kpi-petitions/project-y | import React from 'react';
class PopularPetitionComponent extends React.Component {
constructor() {
super();
}
render() {
return (
<a href={this.props.link} className="pop-petition">
<div className="row">
<div className="col-xs-6 col-md-2 mini-bar">
<div className="mi... |
src/components/attributes/scatter-plot/LocalAttributes.js | eveafeline/D3-ID3-Naomi | import React from 'react';
import GridLines from './local-attributes/GridLines';
import RegressionLine from './local-attributes/RegressionLine';
import ToolTip from './local-attributes/ToolTip';
import ScatterPlotAttr from './local-attributes/ScatterPlotAttr';
export default (props) => {
const gridLines = props.grid... |
src/redux/common/toJS.js | shotaK/redux-starter-kit | import React from 'react'
import { Iterable } from 'immutable'
// A Higher Order Component to convert our Smart Component’s Immutable.JS props to out Dumb Component’s JavaScript props
// taken: http://redux.js.org/docs/recipes/UsingImmutableJS.html#use-a-higher-order-component-to-convert-your-smart-components-immutabl... |
src/js/components/icons/base/Resources.js | odedre/grommet-final | /**
* @description Resources SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @... |
src/svg-icons/device/gps-fixed.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsFixed = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.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.1... |
mobile/mock ups/example_Calendar/src/screens/agenda.js | parammehta/TravLendar | import React, { Component } from 'react';
import {
Text,
View,
StyleSheet
} from 'react-native';
import {Agenda} from 'react-native-calendars';
export default class AgendaScreen extends Component {
constructor(props) {
super(props);
this.state = {
items: {}
};
}
render() {
return (
... |
src/js/client.js | jackdeadman/Natural-Deduction-React | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import Proof from './pages/Proof';
import Selection from './pages/Selection';
const app = document.getElementById('app');
ReactDOM.render(
<Router history={hashHistory}>
<Rout... |
js/jqwidgets/demos/react/app/grid/virtualpaging/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let data = new Array();
let firstNames =
[
'Andrew', 'Nancy', 'Shelley', 'Regina', 'Yoshi', 'Anto... |
packages/starter-scripts/template/src/index.js | chungchiehlun/create-starter-app | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
test/regressions/tests/TextField/TextFieldMargin.js | cherniavskii/material-ui | // @flow
import React from 'react';
import TextField from 'material-ui/TextField';
export default function TextFieldMargin() {
return (
<div style={{ display: 'flex' }}>
<TextField label="Dense" defaultValue="Default Value" margin="dense" />
<TextField style={{ position: 'absolute ' }} label="Dense"... |
local-cli/templates/HelloNavigation/App.js | jevakallio/react-native | /**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './views/HomeScreenTabN... |
src/components/homepage.js | Swan/Eggplants | import React, { Component } from 'react';
import Beatmaps from './beatmaps';
import Nav from './nav';
import Header from './header';
import Search from './search';
class Homepage extends Component {
render() {
return (
<div className="homepage">
<Nav />
<Header /... |
src/server.js | anorudes/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
src/components/WeatherDisplay.react.js | danesparza/Dashboard | import React, { Component } from 'react';
import Moment from 'moment';
// The components
import WeatherForecast from './WeatherForecast.react';
import WeatherForecastIcon from './WeatherForecastIcon.react';
import WeatherAlerts from './WeatherAlerts.react';
// The API utils
import WeatherAPIUtils from '../utils/Wea... |
src/components/common/HomePage.js | mdicarlo3/cautious-disco | import React from 'react';
import { Link } from 'react-router';
const Home = () => {
return(
<div className="home-page">
<div className="adventure-page-fade"></div>
<div className="home-content">
<h1>50 reasons to visit Niagara Falls for canada 150</h1>
<Link to="/adventures"><button>... |
src/svg-icons/device/signal-wifi-4-bar-lock.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | imas/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from 'immut... |
src/app/core/atoms/icon/icons/disk.js | blowsys/reservo | import React from 'react'; const Disk = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M6,5.99406028 C6,4.8927712 6.88670635,4 7.99810135,4 L14,4 L18,8 L18,17.9914698 C18,19.1007504 17.0980496,20 15.9914698,20 L8.0085302,20 C6.8992496,20 6,19.1054862 6,18.0059397 L6,5.99406028 Z M8,12 C8,14.2046438 9.790... |
app/views/searchInput.js | greymj/pokemon_prof_viewer | import React from 'react';
var docs = document;
var SearchInput = React.createClass({
getInitialState(){
return {
list: this.props.pokemonSearch
}
},
render() {
var self = this
var pokeList = self.state.list ? self.state.list : null
return(
<div className="card-header">
<div... |
docker/app/app/src/server.js | JTarball/tetherbox | /*! 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';
const server = global.... |
client/scripts/components/RadioGroup.js | amitava82/radiole | /**
* Created by amitava on 27/05/16.
*/
import React from 'react';
import autobind from 'autobind-decorator';
export default class RadioGroup extends React.Component{
static propTypes = {
options: React.PropTypes.array.isRequired,
onClick: React.PropTypes.func.isRequired,
value: React.P... |
app/containers/Profile/index.js | dijahmac/JobWeasel-FrontEnd |
/*
*
* Profile
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import {Link} from 'react-router-dom';
import './style.css';
import './styleM.css';
import '../../global.css';
import ShowProfile from 'components/ShowProfile';
import ShowUserApplications from 'components/ShowUserApplications';
i... |
fixtures/dom/src/components/fixtures/input-change-events/RadioClickFixture.js | mhhegazy/react | import React from 'react';
import Fixture from '../../Fixture';
class RadioClickFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
changeCount: 0,
};
}
handleChange = () => {
this.setState(({changeCount}) => {
return {
chan... |
docs/client/components/pages/Emoji/SimpleEmojiEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor';
import createEmojiPlugin from 'draft-js-emoji-plugin';
import editorStyles from './editorStyles.css';
const emojiPlugin = createEmojiPlugin();
const { EmojiSuggestions, EmojiSelect } = emojiPlugin;
co... |
react-ui/src/index.js | anshul2209/lookup | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
frontend/component/CommentEditor.js | ghkk/node_dataguru | import React from 'react';
import jQuery from 'jquery';
import MarkdownEditor from './MarkdownEditor';
export default class CommentEditor extends React.Component {
constructor(props){
super(props);
this.state = {};
}
handleChange(name,e){
this.setState({[name]: e.target.value});
... |
specs/attributeFinder/react/testFiles/multipleReturns.js | selo796/find-unused-css | 'use strict';
import React from 'react';
import { render } from 'react-dom';
import { browserHistory, Router, Route, Link, withRouter } from 'react-router';
import withExampleBasename from '../withExampleBasename';
import './app.css';
const App = withRouter(
React.createClass({
getInitialState() {
retur... |
Frontend/src/index/loading.js | zsefvlol/threedegrees |
"use strict";
import React from 'react';
import { render } from 'react-dom';
export default class Loading extends React.Component{
componentWillUnmount() {
console.log('loading unmount');
}
render() {
return (
<div className="table center vh100 bg-red">
<div ... |
docs/src/pages/demos/stepper/ProgressMobileStepper.js | AndriusBil/material-ui | /* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import MobileStepper from 'material-ui/MobileStepper';
import Button from 'material-ui/Button';
import KeyboardArrowLeft from 'material-ui-icons/Ke... |
app/components/ProductTable.js | nosplashurinal/order-management | import React from 'react';
import PropTypes from 'prop-types';
import ProductRow from './ProductRow';
const products = [
{ category: 'Sporting Goods', price: '$49.99', stocked: true, name: 'Football' },
{ category: 'Sporting Goods', price: '$9.99', stocked: true, name: 'Baseball' },
{ category: 'Sporting ... |
docs/app/Examples/modules/Dropdown/States/DropdownExampleActive.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleActive = () => (
<Dropdown text='Dropdown' open>
<Dropdown.Menu>
<Dropdown.Item>Choice 1</Dropdown.Item>
<Dropdown.Item>Choice 2</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
)
export default DropdownExa... |
example/src/components/ActivationByClick.js | ethanselzer/react-cursor-position | import React from 'react';
import ReactCursorPosition, { INTERACTIONS } from '../pkg-lnk/ReactCursorPosition';
import PositionLabel from './PositionLabel';
export default () => (
<ReactCursorPosition
className="example__target"
activationInteractionMouse={INTERACTIONS.CLICK}
>
<Position... |
src/icons/Timer3Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class Timer3Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M23.22 25.95c-.32-.48-.73-.92-1.23-1.31-.51-.39-1.12-.7-1.85-.95.61-.27 1.14-.61 1.6-1 .46-.4.84-.82 1.14-1... |
__tests__/mocks/bricksMock.js | brh55/react-native-masonry | import React from 'react';
import { Text } from 'react-native';
const MOCK = [
{
uri: 'http://test1.jpg',
height: 200,
width: 100,
gutter: 4,
data: {
caption: 'Test'
},
onPress: () => null,
renderHeader: (data) => <Text>Test</Text>
},
{
uri: 'http://test2.jpg',
heigh... |
app/features/vocab/Entry/VocabStats/StreakStatus.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import StreakIcon from 'common/components/StreakIcon';
import { gutter } from 'common/styles/layout';
import H5 from 'common/components/H5';
const Wrapper = styled.div`
${gutter({ type: 'outer', position: 'right' ... |
app/javascript/mastodon/components/relative_timestamp.js | rutan/mastodon | import React from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
const messages = defineMessages({
just_now: { id: 'relative_time.just_now', defaultMessage: 'now' },
seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' },
minutes: { id: 'relat... |
src/views/Widgets/CreateWidget.js | giux78/daf-dataportal | import React, { Component } from 'react';
import { connect } from 'react-redux'
import QueryBuild from '../../components/Widgets/QueryBuild'
import Chart from '../../components/Widgets/Chart'
import Collapse from 'rc-collapse'
import 'rc-collapse/assets/index.css'
import { chartType } from '../../utility'
import ReactT... |
app/components/PageItemOrg/index.js | interra/data-generate | import React from 'react';
import PropTypes from 'prop-types';
import Item from './Item';
import Wrapper from './Wrapper';
import { Link } from 'react-router-dom';
function PageItemOrg(props) {
const name = props.data.value.name;
const image = props.data.value.image ? <img alt={name} src={props.data.value.image}... |
versions/2-react/1-sum/client/src/index.js | hamczu/techsummit-web2016 | import React from 'react'
import { render } from 'react-dom'
import App from './App'
render(<App/>, document.getElementById('root')) |
src/index.js | davide-ravasi/redux-reloaded | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
// add new comment line
... |
react-ui/src/components/Signin.js | simmco/trading-book-store | import React from 'react'
import { Redirect } from 'react-router-dom'
import styled from 'styled-components'
import { connect } from 'react-redux';
import * as actions from '../actions'
class Signin extends React.Component {
state = {
email: '',
password: '',
errors: {}
}
handleCha... |
app/addons/config/routes.js | apache/couchdb-fauxton | // 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 in writing, software
// distributed un... |
client/budget/diff.js | jaketrent/gratigoose | import MediaQuery from 'react-responsive'
import React from 'react'
import styleable from 'react-styleable'
import css from './diff.css'
import { formatUsd } from '../common/amt'
import media from '../common/styles/media'
const { number, string } = React.PropTypes
function Diff(props) {
const diff = props.actual -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.