path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/@ui/Onboarding/Onboarding.stories.js | NewSpring/Apollos | import React from 'react';
import { storiesOf } from '@storybook/react-native';
import Onboarding from './';
storiesOf('Onboarding', module).add('Default', () => <Onboarding />);
|
src/VocabularyInput/VocabularyInput.js | tvthatsme/yalla-qari | import React, { Component } from 'react';
import TextInput from '../TextInput/TextInput';
class VocabularyInput extends Component {
/**
* Constructor method
*/
constructor(props) {
super(props);
// Define the default vocabulary object
this.defaultObject = {
arabicScript: '',
english... |
src/Router.js | Imvoo/MiniZinc-webui | import React from 'react';
import App from './App';
import { BrowserRouter, Match } from 'react-router';
export var Router = React.createClass({
render: function() {
return <BrowserRouter>
<div>
<Match exactly pattern="/" component={App} />
<Match pattern="/:tem... |
presentation/index.js | goblindegook/presentation-wp-react-redux | // Import React
import React from 'react';
// Import Spectacle Core tags
import {
Appear,
CodePane,
Deck,
Fill,
Heading,
Image,
Layout,
Link,
ListItem,
List,
Slide,
Spectacle,
Text,
} from 'spectacle';
// Import image preloader util
import preloader from 'spectacle/lib/utils/preloader';
// ... |
src/components/bank/ScrollHint.js | hackclub/website | import React from 'react'
import styled from 'styled-components'
import AnimatedValue from 'animated-value'
const ScrollCaret = styled.div`
display: block;
position: relative;
z-index: 500;
height: 32px;
width: 32px;
margin: 0 auto;
box-sizing: border-box;
border-bottom: 2px solid #fff;
border-right:... |
graphwalker-studio/src/main/js/index.js | GraphWalker/graphwalker-project | import "core-js/stable";
import "regenerator-runtime/runtime";
import React from 'react';
import { render } from "react-dom";
import { Provider } from 'react-redux'
import store from './redux/store'
import Application from './Application';
render(<Provider store={store}><Application /></Provider>, document.getElementB... |
client/src/containers/NotFound/NotFound.js | bossek/microcrawler-webapp | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
</div>
);
}
|
packages/icons/src/md/device/Battery30.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdBattery30(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<g>
<path
fillOpacity=".3"
d="M34 10.67C34 9.19 32.81 8 31.33 8H28V4h-8v4h-3.33C15.19 8 14 9.19 14 10.67V30h20V10.67z"
/... |
app/containers/App.js | mswiszcz/pagebuilder | // @flow
import React, { Component } from 'react';
import { loadProjects } from '../actions/project';
export default class App extends Component {
props: {
children: HTMLElement
};
render() {
return (
<div>{ this.props.children }</div>
);
}
}
|
techCurriculum/ui/solutions/6.1/src/index.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 in writ... |
components/connected/parse/index.js | marrus-sh/mastodon-go | // <ConnectedParse>
// ================
// This component is a wrapper component for a number of parsers used
// in various places across _Mastodon GO!_. The type of parser is
// specified via the `type` prop, and the needed props for parsing
// varies depending on the type. The "account" parser generates a bi... |
Realization/frontend/czechidm-core/src/components/advanced/Icon/AutomaticRoleIcon.js | bcvsolutions/CzechIdMng | import React from 'react';
import { faKey, faMagic } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
//
import AbstractIcon from './AbstractIcon';
/**
* Automatically assigned role icon.
*
* @author Radek Tomiška
* @since 10.7.1
*/
export default class ... |
wail-ui/components/collections/viewArchiveConfiguration/viewArchiveConfigHeader.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import { CardTitle } from 'material-ui/Card'
import { Link, IndexLink } from 'react-router'
const ViewArchiveConfigHeader = ({viewingCol}, context) => {
const {primary1Color} = context.muiTheme.baseTheme.palette
const linkStyle = {
color: primary1Col... |
ssr/svg.js | VicStor/react-pdf-viewer | import React from 'react';
const Svg = () => (
<svg className='hide'>
<defs>
<symbol id='tag'>
<path d='M21.8473016,6.87957023 C21.299533,6.33363009 20.5387432,6 19.7018745,6 L9.05081842,6 C7.37708103,6 6.00765952,7.36485035 6.00765952,9.03300079 L6.00765952,19.6485035 C6.00765952,20.4825788 5.9031... |
src/socials/react-twitter-button/index.js | UsulPro/lorem-material | import React from 'react';
/** note: Tweet Button Parameter Reference **
* all props mirrow this param list:
* https://dev.twitter.com/web/tweet-button/parameters
*/
const propTypes = {
text: React.PropTypes.string,
url: React.PropTypes.string,
hashtags: React.PropTypes.arrayOf(React.PropTypes.string),... |
src/routes/home/Home.js | kirsty-forrester/react-photo-collage | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTy... |
packages/@lyra/form-builder/src/inputs/TagsArrayInput.js | VegaPublish/vega-studio | // @flow
import React from 'react'
import FormField from 'part:@lyra/components/formfields/default'
import TagInput from 'part:@lyra/components/tags/textfield'
import PatchEvent, {set, unset} from '../../PatchEvent'
import type {Type} from '../../typedefs'
type Props = {
type: Type,
value: Array<string>,
level: ... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/gif.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionGif = (props) => (
<SvgIcon {...props}>
<path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"/>
</SvgIcon>
);
ActionGif.displayName = ... |
src/containers/ProfilePage/EditProfileForm.js | ReactPoland/react-community | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
// STORE
import { editProfile } from 'redux/modules/auth';
// LAYOUT
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import { Div, List } from 'compone... |
docs/app/Examples/elements/Button/Groups/ButtonExampleGroupIcon.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button } from 'shengnian-ui-react'
const ButtonExampleGroupIcon = () => (
<div>
<Button.Group>
<Button icon='align left' />
<Button icon='align center' />
<Button icon='align right' />
<Button icon='align justify' />
</Button.Group>
{' '}
<Bu... |
src/OverlayTrigger.js | 15lyfromsaturn/react-materialize | import React from 'react';
import Overlay from './Overlay';
import idgen from './idgen';
class OverlayTrigger extends Overlay {
constructor(props) {
super(props);
this.state = {isOverlayShown: false};
this.showOverlay = this.showOverlay.bind(this);
this.renderOverlay = this.renderOverlay.bind(this);
... |
react-flux-mui/js/material-ui/src/svg-icons/hardware/tv.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
src/js/components/Cabler.js | grommet/grommet-cabler | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { configureFromLocation, set } from '../actions';
import App from 'grommet/components/App';
import Home from './Home';
import Diagram from './Diagram';
class Cab... |
packages/strapi-admin/files/public/app/containers/PluginPage/index.js | evian42/starpies | /*
*
* PluginPage
*
*/
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { createSelector } from 'reselect';
import { selectPlugins } from 'containers/App/selectors';
import PluginHeader from 'components/PluginHeader';
const exposedComponents = {
PluginH... |
components/Design/Design.js | inthegully/reactPortfolio | import React from 'react';
import '../Projects/DevDesArt.css';
import TMwedding from '../../images/tmweddinginvites.png';
import Programs from '../../images/programs.png';
import SBbabyshower from '../../images/SBbabyshowerinvitations.png';
export default class Design extends React.Component {
render () {
return... |
src/js/components/icons/base/SocialAmazon.js | odedre/grommet-final | /**
* @description SocialAmazon 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.
... |
client/src/components/ContentListing.js | Wiredcraft/jekyllpro-cms | import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import React, { Component } from 'react';
import moment from 'moment';
import { parseFilenameFromYaml } from '../helpers/markdown';
import { parseFilePathByLang, getFilenameFromPath } from '../helpers/utils';
import {
selectCollectio... |
server/sonar-web/src/main/js/apps/web-api/components/InternalBadge.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... |
app/components/Square.js | natac13/Tic-Tac-Toe-Game | import React from 'react';
import classnames from 'classnames';
const Square = ({ placeMarker, square, marker }) => {
let squareClass = classnames({
'square': true,
'active': !!marker,
'user': marker === 'X',
'comp': marker === 'O'
});
return (
<button className={... |
MobileApp/node_modules/react-native/Libraries/Text/Text.js | VowelWeb/CoinTradePros.com | /**
* 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... |
frontend/modules/browse/components/Filter.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames';
import { Link } from 'react-router-dom'
const Filter = ({title, qsTitle, data, qs, multiSelect, cssClass, buildUrl}) => {
const items = data.map((item) => {
if (item.total == 0) {
return null;
}
let a... |
React Native/Demos/address_book/Views/manager.js | AngryLi/ResourceSummary | /**
* Created by Liyazhou on 16/8/28.
*/
import React from 'react';
import {
View,
Text,
ScrollView,
TouchableOpacity,
AsyncStorage,
StyleSheet
} from 'react-native';
import Util from './util';
import Service from './service';
import AddUser from './manager/addUser';
import DeleteUser from '... |
src/components/Game/GameContainer.js | stevenhauser/i-have-to-return-some-videotapes | import React from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import {
CAM_COLS,
CAM_ROWS
} from 'utils/constants';
import immutableToJs from 'utils/immutableToJs';
import { toChangeLevel } from 'state/actions/changeLevel';
import Game from 'components/Game/Game';
functio... |
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | andrejunges/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
client/components/Loading/index.js | jkettmann/relay-authentication | import React from 'react'
import styles from './styles.css'
const Loading = () => (
<div className={styles.container}>
<div className={styles.spinner} />
</div>
)
export default Loading
|
src/index.js | juliaogris/reactrouter-firebaseauth | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/book/BookForm.js | barillas/react-book-store | // ./src/components/book/BookForm.js
import React from 'react';
const BookForm = (props) => {
// Collector variables
let titleInput, authorInput, priceInput, yearInput = null;
return (
<form onSubmit={e => {
e.preventDefault();
// Assemble data into object
var inpu... |
src/stories/index.js | soulhat/galaxy | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import { Button, Welcome } from '@storybook/react/demo';
storiesOf('Welcome', module).add('to Storybook', () => (
<Welcome showApp={linkTo('Bu... |
imports/ui/pages/NewDocument.js | hirdbluebird/recipe-app-react | import React from 'react';
import DocumentEditor from '../components/DocumentEditor.js';
const NewDocument = () => (
<div className="NewDocument">
<h4 className="page-header">New Document</h4>
<DocumentEditor />
</div>
);
export default NewDocument;
|
assets/jqwidgets/demos/react/app/dropdownlist/fluidsize/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
class App extends React.Component {
render() {
let source = [
'Affogato',
'Americano',
'Bicerin',
'Breve',
... |
admin/client/App/screens/List/components/ListColumnsForm.js | dvdcastro/keystone | import React from 'react';
import assign from 'object-assign';
import Popout from '../../../shared/Popout';
import PopoutList from '../../../shared/Popout/PopoutList';
import { InputGroup, FormField, FormInput } from 'elemental';
import ListHeaderButton from './ListHeaderButton';
import { setActiveColumns } from '../... |
src/navigators/DrawerNavigator.js | Steviey/win-react-navigation | /* @flow */
import React from 'react';
import {
Dimensions,
Platform,
} from 'react-native';
import createNavigator from './createNavigator';
import createNavigationContainer from '../createNavigationContainer';
import TabRouter from '../routers/TabRouter';
import DrawerScreen from '../views/Drawer/DrawerScreen';... |
18-react-router-redux/src/index.js | iproduct/course-node-express-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
import './index.css';
import { compose, createStore, combineReducers, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import createHistory from 'history/createBrowserHistory';
import { ConnectedRouter, router... |
client/component/table/header/check-column.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/** @typedef {import('../index.js').SetAllSelected} SetAllSelected */
/**
* A checkable column
*
* @param {object} props - Component props
* @param {SetAllSelected} props.onSelect - When clicking the 'set ... |
src/components/Common/List/Components/Book/Views/Desktop/index.js | LifeSourceUA/lifesource.ua | import React from 'react';
import cx from 'classnames';
import Styles from './Styles/main.scss';
import Grid from 'theme/Grid.scss';
function Desktop() {
const sortItemClass = cx({
[Styles.item]: true,
[Styles.active]: true
});
const filterItemClass = cx({
[Styles.filterItem]: tru... |
src/main.js | duongthien291291/react-redux-starter-kit-munchery-theme | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/native/auth/SignOut.js | skallet/este | // @flow
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import { Button } from '../../common/components';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { signOut } from '../../common/auth/actions';
type SignOutProps = {
signOu... |
packages/material-ui-icons/src/NotificationsOff.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let NotificationsOff = props =>
<SvgIcon {...props}>
<path d="M20 18.69L7.84 6.14 5.27 3.49 4 4.76l2.8 2.8v.01c-.52.99-.8 2.16-.8 3.42v5l-2 2v1h13.73l2 2L21 19.72l-1-1.03zM12 22c1.11 0 2-.89 2-2h-4c0 1.11.89 ... |
src/examples/hello_world_react/hello_world_react.js | looker-open-source/custom_visualizations_v2 | import Hello from './hello'
import React from 'react'
import ReactDOM from 'react-dom'
looker.plugins.visualizations.add({
// Id and Label are legacy properties that no longer have any function besides documenting
// what the visualization used to have. The properties are now set via the manifest
// form within ... |
src/components/TrackItem.js | hedgerh/thinkful-react-style-guide | import React from 'react';
export default React.createClass({
propTypes: {
track: React.PropTypes.object
},
render() {
return (
<tr onClick={ () => this.props.onTrackSelect(this.props.track.id) }>
<td>{ this.props.track.title }</td>
<td>{ this.props.track.user.username }</td>
... |
src/App.js | joropeza/react-compared-with-vanilla-js | import React, { Component } from 'react';
import { createStore, combineReducers, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
import * as reducers from './reducers';
import SingleComponent from './components/singleComponent';
import ContainerWithStat... |
client/app/Core/Navigation/index.js | puja1234/DTA | import React, { Component } from 'react';
import { Dropdown } from 'react-bootstrap';
import { Link, Location } from 'react-router-dom';
class Navigation extends Component {
componentDidMount() {
const { menu } = this.refs;
$(menu).metisMenu();
}
/*activeRoute(routeName) {
return thi... |
app/containers/LanguageProvider/index.js | TheTopazWombat/levt-2 | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
src/components/section.js | origo-map/api-documentation | import React from 'react';
import remark from 'remark';
import remarkHTML from 'remark-html';
import remarkHighlight from '../highlight';
import PureRenderMixin from 'react-pure-render/mixin';
import { postHighlight } from '../../custom';
function renderHighlighted(nodes) {
return {
__html: postHighlight(remark(... |
src/Alert.js | roadmanfong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
definitions/npm/styled-components_v2.x.x/flow_v0.25.x-v0.41.x/test_styled-components_v2.x.x.js | echenley/flow-typed | // @flow
import {renderToString} from 'react-dom/server'
import styled, {ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager} from 'styled-components'
import React from 'react'
import type {Theme} from 'styled-components'
const Title = styled.h1`
font-size: 1.5em;
text-align: center;
color: ... |
src/index.js | stevex86/Ubermensch | import React from 'react';
import ReactDOM from 'react-dom';
import App from 'components/App';
// import registerServiceWorker from './registerServiceWorker';
import 'styles/index.css';
ReactDOM.render(<App />, document.getElementById('root'));
// registerServiceWorker();
|
app/components/List/index.js | c-dagostino/react-boilerplate-example | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
src/app/components/team/Trash.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import DeleteIcon from '@material-ui/icons/Delete';
import ErrorBoundary from '../error/ErrorBoundary';
import { safelyParseJSON } from '../../helpers';
import Search from '../search/Search';
import CheckArchiv... |
src/common/components/Footer.js | adamarthurryan/dubdiff | import React from 'react'
import {Segment} from 'semantic-ui-react'
const Footer = (props) => (
<Segment basic padded textAlign='center' as='footer'>
<p><a href='http://adamarthurryan.com'>Adam Brown</a> | This website is <a href='https://github.com/adamarthurryan/dubdiff'>open source</a>.</p>
</Segment>
)
e... |
index.ios.js | paulunits/tiptap | import React, { Component } from 'react';
import { AppRegistry, Navigator } from 'react-native';
import Main from './main';
import Registration from './registration';
import Active from './active';
class TipTap extends Component {
render() {
return (
<Navigator
initialRoute={{name:'main'}}
... |
src/app/routes/app-views/containers/Projects.js | backpackcoder/world-in-flames | import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
import SparklineContainer from '../../../components/graphs/inline/SparklineContainer'
import Datatable from '../../../components/tables/Datatable'
export default class Projects extends React.Component{
... |
src/parser/hunter/survival/modules/talents/SteelTrap.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
/**
* Hurls a S... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | dalexand/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
src/List/ItemTextSecondary.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../types'
class ItemTextSecondary extends React.Component {
props: PropsC
static defaultProps = {
component: 'div',
}
static displayName = 'List.Item.Text.Secondary'
render() {
const { component: Component, ... |
helene/assets/js/components/Launches.js | voidpp/Helene |
import React from 'react';
import moment from 'moment';
import numeral from 'numeral';
import {ComponentAsFactory, bind} from '../tools';
import LaunchesStore from '../stores/LaunchesStore';
import Lang from '../lang';
export class Launches extends React.Component {
constructor(props) {
super(props);
... |
tp-3/recursos/react-slingshot/src/components/pages/alumnos/components/form/AlumnoForm.js | solp/sovos-reactivo-2017 | import React from 'react';
// Since this component is simple and static, there's no parent container for it.
const AlumnoForm = () => {
return (
<div>
<h2 className="alt-header">Formulario Alumno </h2>
<p>
aqui va el formulario del alumno
</p>
</div>
);
};
export default AlumnoF... |
src/components/NotFoundPage.js | Liz303/Flight | import React from 'react';
import { Link } from 'react-router-dom';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
examples/01 Dustbin/Multiple Targets/index.js | hiddentao/react-dnd | import React from 'react';
import Container from './Container';
export default class DustbinMultipleTargets {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the Source</a></b>
</p>
... |
client/entries/Home.js | byoigres/webpack-hapi-react-skeleton | import React from 'react';
import { render } from 'react-dom'
import configureStore from '../store/configureHomeStore';
import { createStore } from 'redux';
import Root from '../containers/Root';
const store = configureStore({
user: __state.user
});
render(
<Root store={store} />,
document.getElementById('root'... |
packages/generator-react-server/generators/app/templates/components/hello-world.js | lidawang/react-server | import React from 'react';
import {logging} from 'react-server';
const logger = logging.getLogger(__LOGGER__);
export default class HelloWorld extends React.Component {
constructor(props) {
super(props);
this.state = {exclamationCount: 0};
this.handleClick = () => {
logger.info(`Getting more excited! previo... |
examples/04 Sortable/Stress Test/Container.js | nickknw/react-dnd | import React, { Component } from 'react';
import update from 'react/lib/update';
import { name } from 'faker';
import Card from './Card';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
const style = {
width: 400
};
@DragDropContext(HTML5Backend)
export defa... |
docs/src/app/components/pages/components/Divider/ExampleList.js | lawrence-yu/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import {List, ListItem} from 'material-ui/List';
import MobileTearSheet from '../../../MobileTearSheet';
const DividerExampleList = () => (
<MobileTearSheet height={250}>
<List>
<ListItem insetChildren={true} primaryText="Janet Perkins B... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js | dsopel94/create-react-app | /**
* 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.
*/
import Rea... |
src/components/Checkbox/Checkbox.js | MeetDay/dreampark-web | import React from 'react'
import PropTypes from 'prop-types'
export default class Checkbox extends React.Component {
static propTypes = {
checked: PropTypes.bool,
defaultChecked: PropTypes.bool,
value: PropTypes.string,
checkdImageurl: PropTypes.string,
onChange: PropTypes.f... |
plugins/react/server/__test__/components/ComponentA.js | carteb/carte-blanche | import React from 'react';
export default () => <div></div>;
|
docs/app/Examples/views/Card/Content/ContentBlock.js | jamiehill/stardust | import React from 'react'
import { Card, Feed } from 'stardust'
const ContentBlock = () => (
<Card>
<Card.Content>
<Card.Header>
Recent Activity
</Card.Header>
</Card.Content>
<Card.Content>
<Feed>
<Feed.Event>
<Feed.Label image='http://semantic-ui.com/images/a... |
admin/client/views/home.js | Redmart/keystone | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import { Container } from 'elemental';
import xhr from 'xhr';
import { plural } from '../utils';
import Footer from '../components/Footer';
import MobileNavigation from '../components/MobileNavigation';
import PrimaryNavigation from '../compone... |
src/routes/dashboard/components/browser.js | china2008qyj/DVA-DEMO | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Tag } from 'antd'
import styles from './browser.less'
import { color } from 'utils'
const status = {
1: {
color: color.green,
},
2: {
color: color.red,
},
3: {
color: color.blue,
},
4: {
color: color.yellow,
},... |
fields/types/boolean/BooleanField.js | stosorio/keystone | import React from 'react';
import Field from '../Field';
import { Checkbox, FormField, FormNote } from 'elemental';
module.exports = Field.create({
displayName: 'BooleanField',
propTypes: {
indent: React.PropTypes.bool,
label: React.PropTypes.string,
note: React.PropTypes.string,
onChange: React.PropTypes.... |
src/components/WalletPassphraseChange.js | jhkmjnhamster/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { action, computed, observable, reaction } from 'mobx'
import { inject, observer } from 'mobx-react'
import { Button, Input, message } from 'antd'
@translate(['wallet'], { wait: true })
@inject('rpc', 'wallet')
@observer
class WalletPassphraseC... |
src/icons/Iphone.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Iphone extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M328.2,64H183.8C170.7,64,160,74.7,160,87.9v336.3c0,13.1,10.7,23.8,23.8,23.8h144.3c13.1,0,23.8-10.7,23.8-23.8V87.9
C... |
examples/src/components/StatesField.js | bcardi/react-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var id = 0;
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var StatesField = React.createClass({
displayName: 'StatesField',
p... |
docs/app/Examples/elements/Label/Content/LabelExampleLink.js | aabustamante/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
|
examples/sidebar/app.js | RobertKielty/react-router | import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{... |
src/components/Header/Header.js | k2data/k2-react-components | import React from 'react'
import PropTypes from 'prop-types'
class Header extends React.Component {
constructor (props) {
super(props)
this.state = {
visible: false,
}
this.logout = this.logout.bind(this)
this.showSelect = this.showSelect.bind(this)
}
logout () {
const { user } = t... |
examples/02-redux/site/index.js | milankinen/livereactload | import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import App from '../src/containers/app';
import configureStore from '../src/store/configure-store';
const store = configureStore();
render(
<Provider store={store}>
<App/>
</Provider>,
global.document.getEleme... |
manager/src/components/specials/InfoCarousel.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, Text, Image, Dimensions } from 'react-native';
import { Container, Content, Icon } from 'native-base';
import Carousel from 'react-native-looped-carousel';
const { width, height } = Dimensions.get('window');
const Styles = {
viewStyle:{
justifyContent:'cen... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js | aksharora/ReactNativeDemoBasic | '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!
</... |
components/OrganizationListing.js | turntwogg/final-round | import React from 'react';
import Card from './Card';
import Image from './Image';
import FollowButton from './FollowButton';
const Listing = ({ org }) => {
const { fieldOrganizationLogo, fieldOrgSlug, name } = org;
const logo = fieldOrganizationLogo?.links['360xh'].href;
const orgLogo = logo && (
<Image sr... |
src/pages/page-2.js | omahajs/omahajs.github.io | import React from 'react';
import Link from 'gatsby-link';
const SecondPage = () => (
<div>
<h1>Hi from the second page</h1>
<p>Welcome to page 2</p>
<Link to="/">Go back to the homepage</Link>
</div>
);
export default SecondPage;
|
src/reactapp/src/App.js | MisterY/electron-app | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/transfersbutton.js | patel344/Mr.Miner | import PropTypes from 'prop-types'
import React from 'react'
const FileTransfersButton = ({unread, actions}) => {
const onTransfersClick = () => actions.toggleFileTransfers()
return (
<div className="transfers-button" onClick={onTransfersClick}>
<i className="fa fa-bars fa-2x" />
{unread > 0 ? (
<span cl... |
docs/src/sections/AlertsSection.js | Terminux/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function AlertsSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<An... |
src/svg-icons/image/switch-video.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSwitchVideo = (props) => (
<SvgIcon {...props}>
<path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5... |
admin/client/App/shared/Popout/PopoutListHeading.js | benkroeger/keystone | /**
* Render a popout list heading
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
... |
src/js/components/Anchor/stories/Disabled.js | HewlettPackard/grommet | import React from 'react';
import { Anchor, Box } from 'grommet';
const DisabledAnchor = () => (
<Box align="center" pad="large">
<Box margin="small">
<Anchor disabled label="Disabled Anchor" />
</Box>
</Box>
);
export const Disabled = () => <DisabledAnchor />;
export default {
title: 'Controls/... |
site/src/basic.js | gregchamberlain/react-chips | import React, { Component } from 'react';
import Chips, { Chip } from '../../src'
const data = [
'JavaScript',
'Ruby',
'Python',
'Java',
'Swift',
'C++',
'C',
'Objective C',
'Go'
];
class BasicExample extends Component {
constructor(props) {
super(props);
this.state = {
value: []
... |
demos/demo/src/components/Client/Input.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {props, signal, state} from 'cerebral/tags'
import translations from '../../common/computed/translations'
export default connect(
{
enterPressed: signal`clients.enterPressed`,
escPressed: signal`clients.escPressed`,
value: state`clie... |
src/svg-icons/action/invert-colors.js | skarnecki/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.