path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
assets/jqwidgets/demos/react/app/popover/righttoleftlayout/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxPopover from '../../../jqwidgets-react/react_jqxpopover.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
let data = new Array();
let firstNames... |
src/components/video_detail.js | louisdalligos/React-Video-Stream | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading...</div>
}
const videoId = video.id.videoId;
//const url = "https://www.youtube.com/embed" + videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col... |
stories/Common/ExampleHeadersTypography.js | nirhart/wix-style-react | import React from 'react';
import classNames from 'classnames';
import typography from '../../src/Typography';
export default () =>
<ul className="ltr style-list">
<li className={typography.h0}>H0 - Helvetica_25 /48px</li>
<li className={typography.h1}>H1 - Helvetica_35 /36px</li>
<li className={typogra... |
app/client/components/navbar.react.js | kkworden/node-iso | import React from 'react';
import Router from 'react-router';
var Link = Router.Link;
var RouteHandler = Router.RouteHandler;
export class NavBar extends React.Component
{
render() {
return (
<nav className="navbar navbar-default">
<div className="collapse navbar-collapse">
<ul className="nav navbar-na... |
src/layouts/layout.story.js | francisl/baer | import React from 'react';
import { storiesOf, action, linkTo } from '@storybook/react';
import { containerSizeStyles } from '../../stories/config';
import Layout from './layout';
import Button from '../widgets/button';
const buttonList = [0,1,2,3,4,5,6,7,8,9,10].map(() => {
return (<Button>
😀 😎 👍 💯
... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | arasmussen/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/svg-icons/av/subtitles.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSubtitles = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"/>
</SvgIcon... |
basic/node_modules/react-router/es6/Router.js | jintoppy/react-training | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
src/index.js | SwamiRama/rl-hosting_node | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';
import './index.css';
ReactDOM.render( < App / > , document.getElementById('root')); |
docs/src/modules/components/MarkdownElement.js | AndriusBil/material-ui | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from 'material-ui/styles';
import marked from 'marked';
import prism from 'docs/src/modules/utils/prism';
const renderer = new marked.Renderer();
renderer.heading = (text, level) => {
... |
node_modules/react-router/es6/Link.js | PanJ/SimplerCityGlide | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/components/presentational/Shared/Header.js | AurimasSk/DemoStore | import React from 'react';
import PropTypes from 'prop-types';
import { Link, IndexLink } from 'react-router';
//import LoadingDots from './LoadingDots';
const Header = () => {
return (
// <nav>
// <IndexLink to="/" activeClassName="active">Home</IndexLink>
// {" | "}
// ... |
src/svg-icons/content/weekend.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentWeekend = (props) => (
<SvgIcon {...props}>
<path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51... |
examples/forms-material-ui/src/components/dialogs/EmptyView.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
export default createReactClass({
displayName: 'EmptyView',
render: function() {
return (
<div>
<h3>Please select a tweet</h3>
</div>
);
}
});
|
benchmarks/source-agilitycms/src/pageTemplates/MainTemplate.js | gatsbyjs/gatsby | import React from 'react';
import ContentZone from '../agility/components/ContentZone'
const OneColumnTemplate = (props) => {
return (
<div className="one-column-template">
<ContentZone name="Main" {...props} />
</div>
);
}
export default OneColumnTemplate;
|
src/router.js | geekydatamonkey/hjs-gittagger | 'use strict';
import app from 'ampersand-app';
import React from 'react';
import Router from 'ampersand-router';
import PublicPage from './pages/public.js';
import ReposPage from './pages/repos.js';
import Layout from './layout';
export default Router.extend({
renderPage(page, opts = {layout: true}) {
if (opts.... |
src/scenes/home/codeSchools/stateSortedSchools/stateSortedSchools.js | sethbergman/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import Select from 'react-select';
import SchoolCard from 'shared/components/schoolCard/schoolCard';
import styles from './stateSortedSchools.css';
import stateOptions from './stateOpti... |
Realization/frontend/czechidm-acc/src/content/wizard/connectorType/CsvSystemWizard.js | bcvsolutions/CzechIdMng | import { Basic, Services, Utils, Domain } from 'czechidm-core';
import React from 'react';
import _ from 'lodash';
import { SchemaAttributeManager } from '../../../redux';
import DefaultSystemWizard from './DefaultSystemWizard';
import AbstractWizardStep from '../AbstractWizardStep';
const schemaAttributeManager = new... |
src/client/modules/user/forms/login.js | inProgress-team/react-native-mantra-boilerplate | import React, { Component } from 'react';
import t from 'tcomb-form-native';
const Form = t.form.Form;
const Email = t.refinement(t.String, function (email) {
var re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$... |
docs/src/app/components/pages/components/DatePicker/Page.js | nathanmarks/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import datePickerReadmeText from './README';
import DatePickerExampleSimple from... |
app/views/Homepage/components/ColorShiftTitle.js | herereadthis/redwall | import React from 'react';
// The Color Shifter
// takes a string of characters and gives it a color range as you define them.
export default class ColorShiftTitle extends React.Component {
static propTypes = {
title: React.PropTypes.string.isRequired,
colorShift: React.PropTypes.shape({
... |
modules/IndexRoute.js | okcoker/react-router | import React from 'react'
import invariant from 'invariant'
import warning from 'warning'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './PropTypes'
const { bool, func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route indexRout... |
styleguide/components/Nav.js | chrisspang/loggins | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
import styles from './Nav.css';
export default class extends Component {
constructor(props) {
super(props);
this.onScroll = this.onScroll.bind(this);
this.state = {
fixed: false,
... |
src/svg-icons/hardware/phonelink.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhonelink = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
... |
src/interface/news/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Trans } from '@lingui/macro';
import DocumentTitle from 'interface/DocumentTitle';
import TwitterIcon from 'interface/icons/Twitter';
import NewsList from './List';
const News = () => (
<>
<DocumentTitle /> {/* prettiest is if the Home page has no title at all */}
<div ... |
src/views/pages/profile-page/index.js | zerubeus/future-layout | import React from 'react';
import { connect } from 'react-redux';
import { PropTypes } from 'prop-types';
import { ButtonGroup, Button } from 'react-bootstrap';
import { profileActions } from '../../../core/profile';
import { browserHistory } from 'react-router';
import './profile.css';
// this is just to fast style t... |
pages/less.js | huchenme/jiweiwei_me | import React from 'react'
import './example.less'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Less extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi lessy friends`}
/>
<h1
cla... |
examples/polling/src/components/ShowLoadingScreen.js | lore/lore | /**
* This component shows the loading screen. It does so by removing any classes it
* has, which will revert it back to it's default state, which is visible.
**/
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
export default createReactClass({
di... |
packages/material-ui/src/Portal/Portal.js | cherniavskii/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import ownerDocument from 'dom-helpers/ownerDocument';
import exactProp from '../utils/exactProp';
function getContainer(container, defaultContainer) {
container = typeof container === 'function' ? container() : containe... |
src/svg-icons/maps/local-play.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPlay = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4.... |
src/components/loading.js | chaoming56/react-blog | import React from 'react';
import './loading.less';
const Loading = ({isloading}) => (
<div className="bouncing-loader" style={{display: isloading ? 'flex' : 'none'}}>
<div>🐤</div>
<div>🐤</div>
<div>🐤</div>
</div>
);
export default Loading;
|
react-demos/demo13/src/app.js | guilsa/javascript-stuff | import React from 'react';
export default class App extends React.Component{
constructor(props) {
super(props);
this.render = this.render.bind(this);
this.state = {
items: this.props.items,
disabled: true
};
}
componentDidMount() {
this.setState({
disabled: false
})
... |
src/App.js | karim88/karim88.github.io | import React, { Component } from 'react';
import './App.css';
import Intro from "./components/Intro/Intro";
import WOW from "wow.js";
import WhoAmI from "./components/WhoAmI/WhoAmI";
import Timeline from "./components/Timeline/Timeline";
import Skill from "./components/Skill/Skill";
import Footer from "./components/Foo... |
src/components/partials/CategorizedValue.js | v8187/regex-generator | import React, { Component } from 'react';
import { OverlayTrigger } from 'react-bootstrap/lib';
import { updateRegEx } from '../../services/regex.service';
import { helpEdit } from '../../utils/help_tips';
export class CategorizedValue extends Component {
constructor(props) {
super(props);
this... |
src/js/components/layout/statistics-link.js | daniel-madera/pijs | import React from 'react'
import { observer, inject } from 'mobx-react'
import StatisticsModal from './statistics-modal'
@inject('userStore')
@observer
export default class StatisticsLink extends React.Component {
constructor(props) {
super(props)
this.state = {
show: false
}
}
open = e => {... |
Components/App.js | GTXPRO/Reactnative | import React, { Component } from 'react';
import { View, Text, TouchableOpacity, TextInput } from 'react-native';
import io from 'socket.io-client';
export default class App extends Component {
constructor(props) {
super(props);
this.socket = io('http://192.168.1.104:3000', { jsonp: false });
this.state = {
... |
ReactJS/07.Async-Redux/chiper-spa/src/components/elements/login.js | Martotko/JS-Web | import React, { Component } from 'react';
class Login extends Component {
render() {
return (
<div>
<form id="formLogin" class="form">
<label>Username</label>
<input onChange={(e) => { this.props.dataFunc(e) }} name="username" type="text" ... |
src/app/auth/Signup/index.js | omrilitov/react-universal | import React from 'react';
import {reduxForm} from 'redux-form';
import {connect} from 'react-redux';
import * as auth from '../redux';
import Signup from './Signup';
@reduxForm({form: 'signup', fields: ['name.first', 'name.last', 'email', 'password']})
@connect(state => state.auth, auth)
export default class SignupCo... |
src/components/search_bar.js | stewarea/React-Youtube | import React, { Component } from 'react';
//pullling Component from React const Componenet = React.component
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: ''};
}
render() {
return (
<div className="search-bar" >
<input
placeholder=... |
src/Contact.js | Giovanna8/React-Contact-List | /* eslint max-len: ["error", 1000]*/
import React, { Component } from 'react';
export default class Contact extends Component {
render() {
return (
<li className="contact">
<div className="image-cropper">
<img src={this.props.avatar} alt="avatar" />
</div>
<div className="... |
index.android.js | cyqresig/ReactNativeComponentDemos | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Navigator,
Text,
TouchableOpacity,
} from 'react-native';
import ReactNativeComponentList from './examples/android/react-native-compon... |
app/containers/ToolTypeSelectedPartial/index.js | BeautifulTrouble/beautifulrising-client | /**
*
* ToolTypeSelectedPartial
*
*/
import React from 'react';
import styled from 'styled-components';
import {Link} from 'react-router';
import { injectIntl } from 'react-intl';
import TranslatableStaticText from 'containers/TranslatableStaticText';
import staticText from '../ToolTypeArea/staticText';
import Isvg ... |
client/src/screens/signin.screen.js | srtucker22/chatty | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
ActivityIndicator,
Alert,
KeyboardAvoidingView,
Button,
StyleSheet,
Text,
TextInput,
TouchableOpacity,
View,
} from 'react-native';
import { graphql, compose } from 'react-apollo';
import { connect } from 'react-red... |
test/demo/ssr/ssr.js | picidaejs/picidaejs | import React from 'react'
import ReactDOMServer from 'react-dom/server';
import {match, RouterContext} from 'react-router'
import routes from './raw-routes'
import createElement from './createElement'
export default function ssr(url, callback) {
match({ routes: routes, location: url }, function (error, redirectL... |
src/js/components/input/dateRangePicker.js | kukua/dashboard | import React from 'react'
import moment from 'moment-timezone'
import { DateRangePicker } from 'react-dates'
// Modified copy of 'react-dates/lib/css/_datepicker.css'
import '../../../css/datepicker.css'
class DateRangePickerInput extends React.Component {
constructor () {
super()
this.state = {
focusedInput:... |
src/svg-icons/image/panorama-horizontal.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaHorizontal = (props) => (
<SvgIcon {...props}>
<path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C... |
src/static/routes.js | KarimJedda/django-react-setup | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './app';
import { HomeView, LoginView, ProtectedView, NotFoundView } from './containers';
import requireAuthentication from './utils/requireAuthentication';
export default(
<Route path="/" component={App}>
<IndexRo... |
src/server/server.js | eveld/isomorphic-js | 'use strict';
import React from 'react';
import restify from 'restify';
import path from 'path';
import Logger from 'bunyan';
import App from '../app/components/App';
const log = new Logger({
src: true,
name: 'server',
streams: [
{
level: Logger.DEBUG,
stream: process.stdout
}
],
serial... |
react/features/keyboard-shortcuts/components/KeyboardShortcutsDialog.web.js | gpolitis/jitsi-meet | /* @flow */
import Lozenge from '@atlaskit/lozenge';
import { withStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import React, { Component } from 'react';
import { Dialog } from '../../base/dialog';
import { translate } from '../../base/i18n';
/**
* The type of the React {@code Component} props ... |
_pages/cities/src/_client/client.js | verekia/verekia.github.io | // @flow
import React from 'react'
import { hydrate } from 'react-dom'
import App from 'app/App'
// flow-disable-next-line
hydrate(<App data={window.__DATA__} />, document.getElementById('app'))
|
client/src/HeaderConfig/HeaderConfig.js | Nichsiciul/User-Friendly-CMS | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { FormControl, Col, Form, FormGroup, ControlLabel, Glyphicon, Button, Panel } from 'react-bootstrap';
import axios from 'axios';
import { SliderPicker } from 'react-color';
import ColorBullet from './../ColorBullet/ColorBullet.js';
impor... |
client/share_trader/js/components/share_trader.js | enzovici/PoC-TruthChain | import React from 'react';
import { Navbar, Row, Col, Button } from 'react-bootstrap/lib';
import AccountList from '../../../lib/js/react/components/account_list';
import AccountDetail from '../../../lib/js/react/components/account_detail';
import Assets from './assets';
import AssetMatrix from './asset_matrix';
imp... |
src/page/PanelPage.js | jerryshew/react-uikits | import React, { Component } from 'react';
import {Panel} from '../component';
import {CN, TitleBlock} from '../util/tools';
import CodeView from './CodeView';
export class PanelPage extends Component {
render() {
return (
<section>
{TitleBlock('面板')}
<h4>面板</h4>... |
docs/app/Examples/elements/List/Types/ListExampleIconShorthand.js | koenvg/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleIconShorthand = () => (
<List>
<List.Item icon='users' content='Semantic UI' />
<List.Item icon='marker' content='New York, NY' />
<List.Item icon='mail' content={<a href='mailto:jack@semantic-ui.com'>jack@semantic-ui.com... |
src/routes.js | ekatzenstein/three.js-live | import React from 'react';
import {Router, Route} from 'react-router';
import App from './containers/App';
const Routes = (props) => (
<Router {...props}>
<Route path="/" component={App}/>
<Route path="/:id" component={App}/>
</Router>
);
export default Routes;
|
fields/types/location/LocationField.js | sendyhalim/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import CollapsedFieldLabel from '../../components/CollapsedFieldLabel';
import NestedFormField from '../../components/NestedFormField';
import {
FormField,
FormInput,
FormNote,
Grid,
LabelledControl,
} from '../../../admin/client/App... |
src/Broadcast.js | Samuron/VideoHustle | import React, { Component } from 'react';
import firebase from 'firebase';
import VideoContent from './VideoContent';
import YouTube from 'react-youtube';
import FlatButton from 'material-ui/FlatButton';
const Broadcast = React.createClass({
getInitialState() {
var broadcastId = firebase.auth().currentUser.uid;
... |
client/mobile/app/components/PRTabs.js | mgwidmann/slack_coder | import React from 'react';
import { View, Text } from 'react-native';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import { PRIMARY_COLOR, SECONDARY_COLOR, FOREGROUND_COLOR } from '../styles/constants';
import mainStyles from '../styles/main';
import prStyles from '../styles/pullRequests';
import ... |
js/components/attendance/data.js | ChiragHindocha/stay_fit | import React from 'react';
import {Image} from 'react-native';
var btnsDefault = [ { text: 'Button' } ];
var btnsTypes = [
{ text: 'Primary', type: 'primary', },
{ text: 'Secondary', type: 'secondary', },
{ text: 'Delete', type: 'delete', }
];
var rows = [
{
text: "Basic Example",
right:... |
mobile/js/features/loading/index.js | lovelypig5/wms | import React from 'react';
import { AsyncStorage, Text, View, TouchableOpacity } from 'react-native';
import Login from '../login';
import Welcome from '../welcome';
import DICT from '../../config/dict';
import styles from '../../styles';
var Loading = React.createClass({
getInitialState() {
return {
... |
src/screens/Shared/IllustComments.js | alphasp/pxview | import React, { Component } from 'react';
import {
View,
SafeAreaView,
StyleSheet,
InteractionManager,
} from 'react-native';
import { connect } from 'react-redux';
import Icon from 'react-native-vector-icons/FontAwesome';
import ActionButton from 'react-native-action-button';
import OverlaySpinner from 'react-... |
app/components/Nav/index.js | dijahmac/JobWeasel-FrontEnd | /**
*
* Nav
*
*/
import React from 'react';
import {Link} from 'react-router-dom'
import './style.css';
import './styleM.css';
import Bars from 'react-icons/lib/fa/bars';
export default class Nav extends React.PureComponent {
constructor () {
super();
this.state = {
menuOpen:false
}
}
hand... |
client/scenes/MainScene.js | SLIBIO/SLib-Doc | import React, { Component } from 'react';
import 'react-mdl/extra/css/material.deep_orange-orange.min.css';
import 'react-mdl-extra/dist/react-mdl-extra.min.css';
import 'normalize.css/normalize.css';
import { NavigationBar, Footer, ImageGallery } from '../components';
import Background from '../assets/main_background.... |
analysis/warlockdestruction/src/modules/talents/ChannelDemonfire.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import Statis... |
packages/xo-web/src/xo-app/host/license-warning.js | vatesfr/xo-web | import _ from 'intl'
import React from 'react'
import Icon from 'icon'
import Tooltip from 'tooltip'
import { alert } from 'modal'
const showInfo = () =>
alert(
_('licenseRestrictionsModalTitle'),
<span>
<a href='https://xcp-ng.com/pricing.html#xcpngvsxenserver' rel='noopener noreferrer' target='_blank... |
suspans/src/Suspans.js | Muzietto/react-playground | import React from 'react';
import { setItem } from '@src/lib/storage';
class Suspans extends React.Component {
constructor(props) {
super(props);
this.state = {
promise: null,
};
}
/* in order to use this method, it is necessary to comment out
node_modules/react-dom/cjs/react-dom.developm... |
src/App.js | jckfa/img.silly.graphics | import React from 'react'
import Gutters from './components/utils/Gutters'
import Header from './components/header/Header'
import Main from './components/main/Main'
import Footer from './components/footer/Footer'
const App = () => (
<div>
<Gutters>
<Header />
<Main />
<Footer />
</Gutters>
... |
src/pages/contact/Contact.js | hinzed1127/fayraysite | import React from 'react';
import './contact.css';
export default function Contact() {
return (
<div className='contact-container'>
<h1>Booking/Press/General Inquiries</h1>
<h3>fayrayband@gmail.com</h3>
</div>
);
} |
src/main/js/my-app/src/components/InsertPaymentRegistersModal.js | myapos/ClientManagerSpringBoot | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as actions from '../actions/';
class InsertPaymentRegistersModal extends Component {
static propTypes = {
isLoading: PropTypes.bool,
initRegistrations: PropTypes.array,
initDataSt... |
src/blocks/embeds/youtube.js | brijeshb42/kattappa | import React from 'react';
import BaseEmbed from './base';
class Youtube extends BaseEmbed {
constructor(props) {
super(props);
this.start = null;
this.end = null;
this.onChange = this.onChange.bind(this);
this.renderInput = this.renderInput.bind(this);
}
onChange (e) {
if (e.preventDe... |
example/src/Layout.js | istarkov/pbl | import React from 'react';
import { themr } from 'react-css-themr';
import compose from 'recompose/compose';
import { Link } from 'react-router';
import MatchWithProps from './enhancers/MatchWithProps';
import AsyncMatch from './enhancers/AsyncMatch';
import Container from './Container';
import Content from './Content'... |
src/containers/IntroContainer.js | nikolay-radkov/EBudgie | import React from 'react';
import { Component } from 'react';
import {
AsyncStorage,
View,
Text,
Image,
StyleSheet
} from 'react-native';
import AppIntro from 'react-native-app-intro';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import i18n from 'react-native-i18n';
impo... |
src/docs/ComponentPage.js | nreoch25/react-package-dev | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples} = component;
return (
<div className="componentpage">
<h2>{name}</h2>
<p>{description}</p... |
docs/build.js | 15lyfromsaturn/react-materialize | import fsp from 'fs-promise';
import path from 'path';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import {match, RoutingContext} from 'react-router';
import Root from './src/Root';
import routes from './src/Routes';
import metadata from './generate-metadata';
const docsBuilt = path.joi... |
app/background_context.js | minifast/broadcast | import React from 'react';
import Cursor from './cursor';
import Atom from './atom';
const BackgroundContext = React.createClass({
getDefaultProps: function() {
return {
source: `context.${Date.now()}`
};
},
getInitialState: function() {
return chrome.extension.getBackgroundPage().background.g... |
docs/src/app/components/pages/components/BottomNavigation/Page.js | pancho111203/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import bottomNavigationReadmeText from './README';
import BottomNavigationExampl... |
src/routes/error/index.js | FamilyPlanerTeam/family-planner | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import ErrorPage from './Err... |
demo/menu/menu.js | Graf009/react-mdl | import React from 'react';
import ReactDOM from 'react-dom';
import IconButton from '../../src/IconButton';
import Menu, { MenuItem } from '../../src/Menu';
class Demo extends React.Component {
render() {
return (
<div style={{width: '300px', margin: 'auto', position: 'relative'}}>
... |
components/source-code.js | skidding/illustrated-algorithms | import PropTypes from 'prop-types';
import React from 'react';
import PureLayoutComponent from '../utils/pure-layout-component';
const { min, max } = Math;
const renderLineNum = num => (
<span className="line-num">
{num < 10 && ' '}{`${num}. `}
<style jsx>{`
.line-num {
opacity: 0.3;
}
... |
artificial-intelligence/lab1/src/App.js | Drapegnik/bsu | import React, { Component } from 'react';
import WelcomePage from 'components/WelcomePage';
import GamePage from 'components/GamePage';
import KnowledgeBase from 'components/KnowledgeBase';
import Footer from 'components/Footer';
import 'bulma/css/bulma.css';
const pages = {
welcome: <WelcomePage />,
game: <Game... |
src/Pagination.js | AlexKVal/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
mixins: [BootstrapMixi... |
examples/counter/index.js | AprilArcus/redux | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
src/app/views/include/header.js | grvsooryen/mern-stack | import React from 'react';
import { Navbar, NavDropdown, MenuItem, Nav, NavItem } from 'react-bootstrap';
import { Link } from 'react-router-dom';
import Navmenu from "../../components/navmenu";
import RouteNavItem from "../../components/route-nav-item";
export default class Header extends React.Component {
render... |
examples/huge-apps/routes/Profile/components/Profile.js | leeric92/react-router | import React from 'react';
class Profile extends React.Component {
render () {
return (
<div>
<h2>Profile</h2>
</div>
);
}
}
export default Profile;
|
module/form.js | ytase/react-multistep-form | import React from 'react'
import { Step } from './step'
const getStepsFromChildren = children => {
return React.Children.map(children, child => child.type === Step ? child.props.name || null : null).filter(value => value !== null)
}
class MultiStepForm extends React.Component {
constructor(props) {
super(props)... |
ngiiedu-client/src/components/admin/school/sync/common/SampleCheckList.js | jinifor/branchtest | import React, { Component } from 'react';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
//redux
//store에 연결
import { connect } from 'react-redux';
//action 객체사용
import * as actions from '../../../../../actions/in... |
src/icons/PhoneLockedIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PhoneLockedIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 31c-2.49 0-4.9-.4-7.14-1.14-.69-.22-1.48-.06-2.03.49l-4.4 4.41c-5.67-2.88-10.29-7.51-13.18-13.17l4... |
src/components/BComponents/BImagePost/BImagePost.js | bryanlelliott/bryan_site_react | import './BImagePost.less';
import React from 'react'; // eslint-disable-line no-unused-vars
class BImagePost {
render() {
return (
<div className='b-img-post'>
<div className='text-img-content'>
<div className='img-post-img'><img src="images/background-example.jpg"/></div>
<di... |
src/containers/Filter.js | irla/react-cv | // @flow
import React, { Component } from 'react';
import { Button, Container, Input, InputGroup, InputGroupButton, Form, Collapse, Navbar, NavbarToggler, Nav, NavItem, NavLink } from 'reactstrap';
import FontAwesome from 'react-fontawesome';
import '../styles/filter.scss';
class Filter extends Component {
timeoutId... |
src/Shepherd.js | famousgarkin/shepherd | import React from 'react'
import ItemFactory from './ItemFactory'
export default class Shepherd extends React.Component {
constructor(props) {
super(props)
this.state = {
itemFactory: new ItemFactory(props.config.items),
title: props.config.title,
navigation: [],
url: null,
}
this.navigate = thi... |
fixtures/kitchensink/src/features/webpack/ImageInclusion.js | altiore/webpack-react | /**
* 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 from 'react';
import tiniestCat from './assets/tiniest-cat.jpg';
export default () => (
<img id="feature-image-inclusion... |
components/Internship/InternshipTimeline.js | uclaacm/website | import React from 'react';
import styles from '../../styles/components/Internship/InternshipTimeline.module.scss';
function InternshipTimeline(props) {
const { items } = props;
const totalItems = items.length;
const numberOfActiveItems = items.filter(item => item.active).length;
const progressBarWidth = totalItem... |
packages/react-router-native/examples/RouteConfig.js | justjavac/react-router-CN | import React from 'react'
import { StyleSheet, Text, AppRegistry, View } from 'react-native'
import { NativeRouter, Route, Link } from 'react-router-native'
// Some folks find value in a centralized route config.
// A route config is just data. React is great at mapping
// data into components, and <Route> is a compon... |
client/src/app/components/mediaSigninButtons.js | FrontSmith/FSFramework | import _ from 'lodash';
import React from 'react';
import {Link} from 'react-router';
import authActions from 'actions/auth';
export default React.createClass({
getInitialState() {
return {
disabledButtons: {
facebook: false,
google: true,
github... |
app/js/components/Container.js | yukiB/Splarm | "use strict";
import React from 'react'
import Match from './Match'
const electron = window.require('electron');
const {ipcRenderer} = electron;
export default class Container extends React.Component {
constructor(props) {
super(props)
this.state = {
loading: false,
error: false,
data: {}
... |
server/renderer/renderer-controller.js | sharvit/my-blog-react | import React from 'react';
import reactCookie from 'react-cookie';
import { Provider } from 'react-redux';
import { match, RouterContext, createMemoryHistory } from 'react-router';
import { renderToString } from 'react-dom/server';
import { configure } from 'redux-auth';
import routes from '../../client/routes';
impor... |
docs/lib/UI/Layout.js | video-react/video-react | import React from 'react';
import Helmet from 'react-helmet';
import Footer from './Footer';
import Nav from './Nav';
export default props => {
return (
<div className="wrapper">
<Helmet
titleTemplate="Video-React - %s"
title="React Video Component"
defaultTitle="React Video Compone... |
app/static/src/diagnostic/AddEquipmentForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Button from 'react-bootstrap/lib/Button';
import Panel from 'react-bootstrap/lib/Panel';
import Modal from 'react-bootstrap/lib/Modal';
import HelpBlock from 'react-bootstr... |
src/interface/Alert/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
const Alert = props => {
const { kind, children, className, ...others } = props;
return (
<div className={`alert alert-${kind} ${className || ''}`} {...others}>
{children}
</div>
);
};
Alert.propTypes = {
kind: PropTypes.oneOf(['dan... |
src/js/components/App.react.js | mirandagithub/reactflux_try |
import React from 'react';
var AppActions = require('../actions/AppActions.react.js');
var AppStore = require('../stores/AppStore.react.js');
var WaitForStore = require('../stores/WaitForStore.react.js');
var GreetingBtn = require('../components/GreetingBtn.react.js');
function getMessage(){
return {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.