path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
test/integration/css-fixtures/compilation-and-prefixing/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
actor-apps/app-web/src/app/components/modals/Contacts.react.js | supertanglang/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
src/DropdownToggle.js | erictherobot/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import Button from './Button';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const CARET = <span> <span className="caret" /></span>;
export default class DropdownToggle extends React.Component {
render() ... |
packages/react-error-overlay/src/components/Footer.js | HelpfulHuman/helpful-react-scripts | /**
* 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:... |
node_modules/re-base/examples/firebase/github-notetaker/app/App.js | aggiedefenders/aggiedefenders.github.io | import React from 'react';
import { render } from 'react-dom';
import routes from './config/routes';
render(routes, document.getElementById('app'))
|
app/components/home.js | UsainBloot/notekeeper | import React, { Component } from 'react';
import styles from './home.scss';
export default class Home extends Component {
render() {
return (
<div>
<div className={styles.container}>
<h2>NoteKeeper</h2>
</div>
</div>
);
}
}
|
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | felixSchl/try-neodoc | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
app/components/BudgetEdit.js | jpsierens/budget | // @flow
import React from 'react';
import * as rules from '../rules';
import handleUpdateItem from '../helpers/handleUpdateItem';
import { BudgetType } from '../types';
const handleSave = (nameInput, noteInput, params) => {
const newName = nameInput.value;
const newNote = noteInput.value;
if (!newName ||... |
src/components/AsyncNotFound/NotFound.js | hrasoa/react-pwa | import React from 'react';
import Status from '../Status';
export default () => (
<Status code={404}>
<div>
<h1>Sorry, can’t find that.</h1>
</div>
</Status>
);
|
src/modules/app/__mocks__/App.js | nattatorn-dev/currency-exchange | import React from 'react'
// smoke test
const App = () => <h1>App</h1>
export default App
|
lib/components/header.js | AlmirKadric/hyperterm | import React from 'react';
import Component from '../component';
import {decorate, getTabsProps} from '../utils/plugins';
import Tabs_ from './tabs';
const Tabs = decorate(Tabs_, 'Tabs');
export default class Header extends Component {
constructor() {
super();
this.onChangeIntent = this.onChangeIntent.bi... |
src/svg-icons/action/flight-takeoff.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightTakeoff = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.... |
src/svg-icons/device/network-cell.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkCell = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceNetworkCell = pure(DeviceNetworkCell);
DeviceNetworkCell.displayNam... |
node_modules/react-native/Libraries/Components/WebView/WebView.ios.js | Stoneski93/GymDiary | /**
* 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... |
web/src/app/components/actionEdit.js | artpi/SmartPi | import React, { Component } from 'react';
import { Card, CardText, CardHeader, CardActions } from 'material-ui/Card';
import ModeEditor, { Avatar } from '../../../modes';
import RaisedButton from 'material-ui/RaisedButton';
import ActionDelete from 'material-ui/svg-icons/action/highlight-off';
import pick from 'lodash/... |
src/interface/premium/Page.js | FaideWW/WoWAnalyzer | import React from 'react';
import DocumentTitle from 'interface/common/DocumentTitle';
import Premium from './index';
class Page extends React.PureComponent {
render() {
return (
<div className="container">
<DocumentTitle title="Premium" />
<Premium {...this.props} />
</div>
);... |
KDReactNative/KDClass/MainPage/KDMainPageBannner.js | csyibei/KDReactNative | /**
* Created by kaidi on 2016/10/13.
*/
//KDMainPageBannner
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
Navigator,
ScrollView
} from 'react-native';
var Dimensions = require('Dimensions');
var Win = Dimensions.get('... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
pages/index.js | digitarald/performance-foxfooding-server | import React from 'react';
import Head from 'next/head';
import NoSSR from 'react-no-ssr';
import Link from 'next/link';
import { meta } from '../lib/metrics';
import reducers from '../lib/reducers';
import { parse } from '../lib/iterators/serializer';
import apiFetch from '../lib/api-fetch';
import Metrics from '../co... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js | picter/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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(id = 0) {
return [
{ id: id + 1, name... |
techCurriculum/ui/solutions/2.4/src/App.js | AnxChow/EngineeringEssentials-group | /**
* 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 in writ... |
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js | spiermar/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
exercise-07-solution/src/components/Pokedex.js | learnapollo/pokedex-react | import React from 'react'
import { graphql } from 'react-apollo'
import { withRouter } from 'react-router'
import gql from 'graphql-tag'
import styled from 'styled-components'
import PokemonPreview from '../components/PokemonPreview'
import AddPokemonPreview from '../components/AddPokemonPreview'
import PageNavigation... |
egghead.io/react_fundamentals/lessons/03-properties/App.js | andrisazens/learning_react | // https://jsbin.com/yirifo/edit?html,js,output
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
render(){
let txt = this.props.txt
return <h1>{txt}</h1>
}
}
App.propTypes = {
txt: React.PropTypes.string,
cat: React.PropTypes.number.isRequired
}
App.def... |
src/containers/Charts/recharts/charts/stackedAreaChart.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip } from 'recharts';
export default class extends Component {
render() {
const { datas, width, height, colors } = this.props;
return (<div className="isoChartWrapper">
<AreaChart width={width} height={h... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js | nauman-ahmad-qureshi/adsManagement | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
docs/src/js/component/wrapper/next.react.js | vwxyutarooo/react-video-icons | 'use strict';
import React from 'react';
import Next from 'next';
export default class NextWrap extends React.Component {
constructor(props) {
super(props);
}
render() {
return(
<button>
<Next />
</button>
);
}
}
|
examples/real-world/index.js | idolize/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
server/index.js | react-store/react-store.ml | require("babel-core/register");
require("babel-polyfill");
const express = require('express');
const fs = require('fs')
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import { StaticRouter } from 'react-router-dom';
import Routes from '../src/routes';
import { Provider } from 'react-redux';
... |
src/svg-icons/device/storage.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
src/components/NotFound.js | wind85/waterandboards | import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
class NotFound extends React.Component{
render(){
return(
<div style={styles}>
<h1> Ops wiped out ¯\_(ツ)_/¯ </h1>
<div>
</div>
</div>
)
}
}
// centering a div :)
const styles ... |
src/svg-icons/social/mood.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMood = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 ... |
admin/client/App/shared/Kbd.js | giovanniRodighiero/cms | import React from 'react';
import { css } from 'glamor';
import theme from '../../theme';
import { darken, lighten } from '../../utils/color';
function Kbd ({ className, ...props }) {
props.className = css(classes.kbd);
return <kbd {...props} />;
};
const classes = {
kbd: {
backgroundColor: theme.color.body,
... |
app/javascript/mastodon/features/ui/components/upload_area.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.boo... |
src/components/pages/Checkout/CheckoutSummary.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import {FormattedMessage, FormattedNumber} from 'react-intl';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import Button from '../../common/buttons/Button';
import Heading from '../../common/typography/Heading';
import Orde... |
clients/packages/admin-client/src/components/forms/input.js | nossas/bonde-client | import React from 'react'
const Input = ({ input, label, placeholder, type, meta: { touched, error, warning } }) => (
<div>
{label && <label>{label}</label>}
<input {...input} type={type} placeholder={placeholder} />
{touched && ((error && <span>{error}</span>) || (warning && <span>{warning}</span>))}
... |
src/client/assets/js/nodes/outputs/pipstaprint/node.js | me-box/databox-sdk | import React from 'react';
//import composeNode from 'utils/composeNode';
import Textfield from 'components/form/Textfield';
import Textarea from 'components/form/Textarea';
import Cell from 'components/Cell';
import Cells from 'components/Cells';
class Node extends React.Component {
render() {
cons... |
app/javascript/mastodon/main.js | pso2club/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
components/panel_users.js | volodalexey/spachat | import React from 'react'
import Localization from '../js/localization'
import users_bus from '../js/users_bus.js'
const PanelUsers = React.createClass({
renderItems(){
let items = [], self = this;
const delete_button = <div className="flex-just-center">
<button className="button-inset-square" da... |
src/components/chart.js | cspenc/weather-app | 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}... |
node_modules/react-bootstrap/es/ControlLabel.js | Technaesthetic/ua-tools | 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/svg-icons/content/remove-circle-outline.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemoveCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8... |
node_modules/react-bootstrap/es/Tab.js | Technaesthetic/ua-tools | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import TabContainer from... |
actor-apps/app-web/src/app/components/common/Banner.react.js | dsaved/africhat-platform-0.1 | import React from 'react';
import BannerActionCreators from 'actions/BannerActionCreators';
class Banner extends React.Component {
constructor(props) {
super(props);
if (window.localStorage.getItem('banner_jump') === null) {
BannerActionCreators.show();
}
}
onClose = () => {
BannerActionC... |
js/jqwidgets/demos/react/app/datetimeinput/rangeselection/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js';
class App extends React.Component {
componentDidMount() {
let date1 = new Date();
date1.setFullYear(2013, 7, 7);
let date2 = new Date();
d... |
KDReactNative/KDClass/Mine/KDMineItem.js | csyibei/KDReactNative | /**
* Created by kaidi on 2016/10/17.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
Navigator
} from 'react-native';
var Dimensions = require('Dimensions');
var Win = Dimensions.get('window');
var KDPushView = require('... |
RNTester/js/ActivityIndicatorExample.js | tszajna0/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.
*
* @flow
* ... |
docs/app/Examples/elements/Label/Content/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const LabelContent = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Detail'
description='A label ... |
src/server/controllers/serverRender.js | YingQQQ/React-Blog | import React from 'react';
import {
RouterContext
} from 'react-router';
import {
renderToString
} from 'react-dom/server';
import {
Provider
} from 'react-redux';
import configureStore from '../../client/store/configuerStore';
const store = configureStore();
export default async (ctx, next, renderProps) => {
... |
src/js/routes/index.js | shane-arthur/personal-website | import React from 'react';
import { Router, Route } from 'react-router';
import MainpageContainer from '../containers/MainpageContainer';
import ResumeContainer from '../containers/ResumeContainer';
export default function (history) {
return (
<Router history={history}>
<Route path="resume" compone... |
src/components/GithubButton/GithubButton.js | vidaaudrey/avanta | import React from 'react';
const GithubButton = (props) => {
const {user, repo, type, width, height, count, large} = props;
let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`;
if (count) src += '&count=true';
if (large) src += '&size=large';
return (
<iframe
src=... |
src/components/FetchError/FetchError.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import Notification from '../Notification';
import Button from '../Button';
import { ICONS } from '../../constants';
const FetchError = ({ message, onRetry, isFetching }) => (
<Notification
state="error"
message={`Could not fetch the data. ${mess... |
src/Collapse.js | xuorig/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import domUtils from './utils/domUtils';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import createChainedFunction from './utils/createChainedFunction';
let capitali... |
src/Parser/Shaman/Restoration/CombatLogParser.js | hasseboulen/WoWAnalyzer | /*
TODO:
Remove Spirit Link Damage from Overall Healing
*/
import React from 'react';
import Tab from 'Main/Tab';
import Mana from 'Main/Mana';
import Feeding from 'Main/Feeding';
import CoreCombatLogParser from 'Parser/Core/CombatLogParser';
import LowHealthHealing from 'Parser/Core/Modules/LowHealthHealing';
... |
components/react-semantify/src/modules/progress.js | react-douban/douban-book-web | import React from 'react';
import ClassGenerator from '../mixins/classGenerator';
import StateSelector from '../mixins/stateSelector';
let defaultClassName = 'ui progress';
const Progress = React.createClass({
mixins: [ClassGenerator, StateSelector],
render: function () {
let {
className,
perce... |
app/navbar/components/Tabs.js | Raymond-Zhu/music-video-app | import React from 'react';
import {Tab, Tabs} from 'material-ui/Tabs';
import { Link } from 'react-router';
import { hashHistory } from 'react-router'
const style = {
padding: 10,
}
function handleActive(tab) {
hashHistory.push(tab.props['data-route']);
}
const NavTabs = () => (
<Tabs>
<Tab label="Artist"
... |
Libraries/Components/WebView/WebView.ios.js | rickbeerendonk/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... |
application/components/activity/ActivityView.js | buildreactnative/assemblies-tutorial | import React, { Component } from 'react';
import { Navigator } from 'react-native';
import { extend } from 'underscore';
import Activity from './Activity';
import Conversation from '../messages/Conversation';
import Profile from '../profile/Profile';
import Event from '../groups/Event';
import { API, DEV } from '../..... |
packages/expo-apple-authentication/build/AppleAuthenticationButton.js | exponentjs/exponent | import React from 'react';
import { AppleAuthenticationButtonStyle, AppleAuthenticationButtonType, } from './AppleAuthentication.types';
import { ExpoAppleAuthenticationButtonSignInWhite, ExpoAppleAuthenticationButtonSignInWhiteOutline, ExpoAppleAuthenticationButtonSignInBlack, ExpoAppleAuthenticationButtonContinueWhit... |
client/pages/LandingPage/components/LandingPage.js | jacob-ebey/DashboardTemplate | import React from 'react';
import { Link } from 'react-router-dom';
export default class LandingPage extends React.Component {
render = () => {
return (
<div>
<h1>Landing Page :D</h1>
<p>Welcome to the react-redux dashboard template.</p>
<p>We are excited to bring you a simple to u... |
src/svelte/shared/router-context.js | nolimits4web/Framework7 | // import React from 'react';
// const RouterContext = React.createContext({
// route: null,
// router: null,
// });
// export { RouterContext };
|
client/modules/Setting/components/SettingList/SettingList.js | lordknight1904/bigvnadmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Table, Checkbox, Button } from 'react-bootstrap';
import { fetchSettings, toggleSetting } from '../../SettingActions';
import { getSettings, getCurrentPage } from '../../SettingReducer';
import ... |
src/index.js | alexmlong/quadrants | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/Router.js | BringJacket/www | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-routing/src/Router';
import HttpClient from './core/HttpClient';
import Env from './core/Env';
import Redirect from './utils/Redirect';
import App from './comp... |
app/javascript/mastodon/features/ui/components/compose_panel.js | theoria24/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import SearchContainer from 'mastodon/features/compose/containers/search_container';
import ComposeFormContainer from 'mastodon/features/compose/containers/compose_form_container';
import NavigationContainer from 'mast... |
app/javascript/mastodon/containers/account_container.js | hugogameiro/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js | viankakrisna/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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return {
users: [
{ i... |
src/containers/DevToolsWindow.js | Leviathan5/BeamSoundlyInteractive | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
/* istanbul ignore next */
export default createDevTools(
<LogMonitor />
)
|
src/components/Button/demo/ghost/index.js | lebra/lebra-components | import React, { Component } from 'react';
import { render } from 'react-dom';
import Button from '../../index';
import './index.less';
export default class BaseDemo extends Component {
render() {
return (
<div>
<Button ghost colors="primary">确定</Button>
<Button iconType="iconfont icon-add" shap... |
fields/components/ItemsTableCell.js | michaelerobertsjr/keystone | import React from 'react';
var ItemsTableCell = React.createClass({
displayName: 'ItemsTableCell',
propTypes: {
className: React.PropTypes.string,
},
getDefaultProps () {
return {
className: '',
};
},
render () {
const className = `ItemList__col ${this.props.className}`;
return (
<td {...this.pro... |
src/svg-icons/social/pages.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPages = (props) => (
<SvgIcon {...props}>
<path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/... |
src/docs/examples/Rating/ExampleNoInitialValue.js | ggrumbley/ghg-react | import React from 'react';
import Rating from 'ghg-react/Rating';
/** No Initial Value */
export default function ExampleNoInitialValue() {
return <Rating />
} |
src/components/mapbox-map.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
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, o... |
client/components/shared/SocialMediaLinks/icons/Instagram.js | bzswords/blackstallion | import React from 'react';
function Instagram() {
return (
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 76.50571 76.50571">
<title>Instagram</title>
<path d="M38.25285,0A38.25285,38.25285,0,1,0,76.50571,38.25285,38.252,38.252,0,0,0,38.25285,0Zm0,71.56932A33.31... |
src/svg-icons/av/playlist-add.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
examples/js/sort/custom-sort-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
src/js/Main/components/About.js | fr3nchN/proactive | import React from 'react'
import { Link } from 'react-router-dom'
import links from "./../links"
const About = () => (
<div>
<div className="jumbotron jumbotron-fluid background-image-worldmap">
<div className="container">
<div className="row">
<div className... |
examples/counter/containers/Root.js | jstrimpel/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
node_modules/rs-theme/src/views/message.js | labibramadhan/hybrid-apps-development | import React from 'react';
import Reflux from 'reflux';
import {withRouter} from 'react-router';
import Snackbar from 'material-ui/Snackbar';
import _ from 'underscore';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {TodoActions, Tod... |
src/applications/static-pages/wizard/index.js | department-of-veterans-affairs/vets-website | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import set from 'platform/utilities/data/set';
import {
WIZARD_STATUS,
WIZARD_STATUS_NOT_STARTED,
WIZARD_STATUS_RESTARTING,
WIZARD_STATUS_RESTARTED,
WIZARD_STATUS_COMPLETE,
} from 'platform/site-wide/wizard';
... |
src/components/Leaderboard.js | Science-Adventurers/game-frontend | import React, { Component } from 'react';
import channel from '../connection.js';
import Header from './Header.js';
import { Link } from 'react-router'
class Leaderboard extends Component {
constructor(props){
super(props);
}
render() {
let score = this.props.params.score;
console.log(this.state);... |
source/shared/components/title/tests.js | brankol/checkin | import React from 'react';
import reactDom from 'react-dom/server';
import test from 'tape';
import dom from 'cheerio';
import createTitle from 'shared/components/title';
const Title = createTitle(React);
const render = reactDom.renderToStaticMarkup;
test('Title', assert => {
const titleText = 'Hello!';
const pr... |
client/src/components/header/Header.js | cghenne/lifewrite | import React from 'react';
import './Header.scss';
const Header = props => {
const logoutStyle = {
width: 50,
height: 33,
position: 'absolute',
right: 0,
paddingTop: 2,
};
return (
<header>
<div className="logo">
<a href="#">LifeWrite</a>
</div>
<div className="... |
src/components/views/elements/SyntaxHighlight.js | aperezdc/matrix-react-sdk | /*
Copyright 2017 Michael Telatynski <7t3chguy@gmail.com>
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... |
js/jqwidgets/demos/react/app/formattedinput/fluidsize/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js';
class App extends React.Component {
render() {
return (
<JqxFormattedInput
width={'30%'} height={25} radix={'binary'}
... |
src/App.js | nnnoel/graphql-apollo-resource-manager | import React from 'react';
import 'grommet/grommet-hpe.min.css';
import GrommetApp from 'grommet/components/App';
import { Switch, Route, Redirect } from 'react-router-dom';
import ProgramsListDirectory from './modules/ProgramsListDirectory/components/ListDirectory';
import AdminDashboard from './modules/AdminPortal/vi... |
example/src/scripts/pages/ReactGLDemo/index.js | vyorkin-personal/erlyeditor | import React, { Component } from 'react';
import css from 'react-css-modules';
import styles from './styles';
export class ReactGLDemo extends Component {
render() {
if (!__CLIENT__) return null;
const Hello = require('./Hello');
return (
<Hello />
);
}
}
export default css(ReactGLDemo, ... |
src/components/Footer/Footer.js | RyszardRzepa/React-Redux-Firebase-Boilerplate | /**
* 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 React from 'react';
... |
components/parts/JoinSpeaker.js | zhangmingkai4315/PollingApp | import React from 'react'
import ReactDOM from 'react-dom'
var JoinSpeaker=React.createClass({
start(){
var speakerName=this.refs.username.value;
var title=this.refs.title.value;
var type="speaker";
this.props.emit('start',{name:speakerName,title:title,type:type});
},
render:function () {
ret... |
docs/app/Examples/elements/Label/Content/LabelExampleLink.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Icon, Label } from 'semantic-ui-react'
const LabelExampleLink = () => (
<Label as='a'>
<Icon name='mail' /> 23
</Label>
)
export default LabelExampleLink
|
packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/CustomInterpolation.js | facebookincubator/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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
const styled = ([style]) =>
style
.trim()
.spli... |
docs/src/index.js | fdt-component/rc-tabs | import React from 'react';
import ReactDOM from 'react-dom';
import Component from './app.js';
const rootEl = document.getElementById('j-app');
const render = () => ReactDOM.render(<Component />,rootEl);
render();
if (process.env.NODE_ENV !== 'production' && module.hot) {
module.hot.accept('./app.js', render);
}... |
react/features/filmstrip/components/web/ModeratorIndicator.js | gpolitis/jitsi-meet | /* @flow */
import React from 'react';
import { IconCrown } from '../../../base/icons';
import { BaseIndicator } from '../../../base/react';
/**
* The type of the React {@code Component} props of {@link ModeratorIndicator}.
*/
type Props = {
/**
* From which side of the indicator the tooltip should appea... |
src/App/views/Saved/index.js | hajjiTarik/SolarNews | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { FlatList, StyleSheet, View } from 'react-native';
import { bindActionCreators } from 'redux';
import { isEmpty, values } from 'lodash';
import ArchivedArticleItem from '../../components/ArchivedArticleItem';
import InfoMessage fr... |
theme/src/components/homeSlider.js | cezerin/cezerin | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import ImageGallery from 'react-image-gallery';
import { themeSettings } from '../lib/settings';
const renderItem = item => (
<div className="image-gallery-image">
<NavLink to={item.path || ''}>
<img src={i... |
src/ParentClass.js | smashercosmo/react-hot-loader-inheritance-issue | import React from 'react';
const ParentClass = React.createClass({
render() {
return <div>Hello</div>
}
});
export default ParentClass; |
app/components/App.js | Danilo-Zekovic/pwa | import React from 'react'
import Main from './Main'
import Header from './Header'
// basic structure, should add footer as well
const App = () => (
<div>
<Header />
<Main />
</div>
)
export default App
|
Team4of5/src/Team4of5_App/BugTracking/IssueTrackerNav.js | Team4Of5/Project | import React from 'react';
import { Navbar, NavItem, Nav, Jumbotron, Button, Input} from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import {
BrowserRouter as Router,
Route,
Link,
NavLink
} from 'react-router-dom';
import IssueReports from './IssueReports.js';
class Iss... |
app/components/Logo/Logo.js | rakasiwi23/currency-converter | import React, { Component } from 'react';
import { View, Text, Keyboard, Animated, Platform } from 'react-native';
import PropTypes from 'prop-types';
import styles from './styles';
const background = require('./images/background.png');
const logo = require('./images/logo.png');
const ANIMATION_DURATION = 250;
class... |
src/components/textfield/demos/HelperText.js | isogon/material-components | import React from 'react'
import { Textfield } from '../../../'
export default () => (
<Textfield
label="Short Description"
helperText="33/100"
defaultValue="Useful information for your users"
/>
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.