path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/03 Nesting/Drag Sources/index.js | globexdesigns/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class NestingDragSources extends Component {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drag%20Sources'>Browse the Source</a>... |
src/pages/santissima.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Santissima' />
)
|
src/website/app/pages/NotFound/index.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { keyframes } from '@emotion/core';
import styled from '@emotion/styled';
import Button from '../../SiteButton';
import Link from '../../SiteLink';
import Markdown from '../../Markdown';
import content from './notFound.md';
const floatingMineralsSvg = require('!!raw-loader!... |
node_modules/react-native-vector-icons/RNIMigration.js | jasonlarue/react-native-flashcards | import React from 'react';
import PropTypes from 'prop-types';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import Foundation from 'react-native-vector-icons/Foundation';
import Ionicons from 'react-native-vector-icons/Ionicons';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
i... |
examples/Transition.js | Tomyail/react-overlays | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Transition from 'react-overlays/lib/Transition';
import injectCss from './injectCss';
const FADE_DURATION = 200;
injectCss(`
.fade {
opacity: 0;
-webkit-transition: opacity ${FADE_DURATION}ms linear;
-o-transition: opacity ... |
src/svg-icons/navigation/arrow-drop-down.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
src/components/matchPanel/matchBuyPanelView.js | gordongordon/hom | import React from 'react'
import { NoticeBar,List , Card, Stepper, Icon, Picker, SwipeAction, DatePicker, Badge, Flex, InputItem, WhiteSpace, Button, SegmentedControl} from 'antd-mobile';
import { createForm } from 'rc-form';
// import moment from 'moment';
// import 'moment/locale/zh-cn';
import {propertys} from 'use... |
src/Tweedledee.js | GWShark0/hello-package | import React, { Component } from 'react';
class Tweedledee extends Component {
render() {
return (
<div className="tweedledee" />
);
}
}
export default Tweedledee;
|
test/fixtures/skipped-assignment/expected.js | layershifter/babel-plugin-transform-react-handled-props | import React from 'react';
function Example() {
let prop;
prop = {};
return null;
}
export default Example;
|
src/experimental-features/warn.js | chrisdwheatley/radiate | import * as colors from 'material-ui/styles/colors'
import Radium from 'radium'
import React from 'react'
import {UAParser} from 'ua-parser-js'
import {default as Enable} from './enable'
import {default as Title} from '../title'
const styles = {
cell: {
padding: '1vw',
margin: 5,
boxShadow: '0px 1px 6px ... |
src/client/container/manager/Manager.js | JulienPradet/quizzALJP | import React from 'react'
import { Map } from 'immutable'
import history from '../../util/history'
import ManagerManager from './ManagerManager'
import Block from '../../components/ui/Block'
import { Button } from '../../components/ui/FormBase'
/**
* Master component that lauches the master node
* The node launches ... |
src/icons/BatteryCharging80Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BatteryCharging80Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fillOpacity=".3" d="M31.33 8H28V4h-8v4h-3.33C15.19 8 14 9.19 14 10.67V18h9.87L26 14v4h8v-7.33C34 9.... |
tests/api-react/image/2-Image.js | hcchien/plate | import React from 'react';
import ReactDOM from 'react-dom';
import { Button, Col, Form, FormField, FormInput, FileUpload, Row } from 'elemental';
import api from '../../../client/lib/api';
const Test = React.createClass({
getInitialState () {
return {
image_one: null,
image_two: null,
};
},
componentDid... |
src/pages/community/Community.js | HeliumLau/Hoop-react | import React from 'react';
import { Link } from 'react-router';
import './Community.less';
import { connect } from 'react-redux';
import { add } from 'store/action.js';
class Community extends React.Component {
constructor(props) {
super(props);
}
render() {
const { dispatch } = this.pro... |
PhotoSpace/imports/ui/pages/Index.js | gergi30/elte-ik-szakdolgozat | import React from 'react';
import AppBar from 'material-ui/AppBar';
import {
Card,
CardActions,
CardHeader,
CardMedia,
CardTitle,
CardText
} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import {Grid, Row, Col} from 'meteor/lifefilm:react-flexbox-grid';
const Index =... |
src/routes/error/index.js | Tori1810/Task3 | /**
* 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... |
lib/components/HourWeather.js | letakeane/db-lk-weathrly | import React from 'react';
// 7 Hour Forecast
const HourWeather = (props) => {
const showHours = () => {
const weatherHours = props.weather;
const listHours =
weatherHours.map((obj) => {
return (
<article key={obj.time.toString()}
id={Date.now()}
classNam... |
src/components/users/UsersListSearch.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react'
import PropTypes from 'prop-types'
import UsersList from './UsersList'
import Error from '../common/Error'
import InputField from '../common/InputField'
class UsersListSearch extends React.Component {
constructor(props) {
super(props)
this.state = {
filteredUsers: [],
... |
public/components/ozadmin/LogDisplay.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
const LogDisplay = () =>
<div className='logDisplay'>
<p>Printing logs here!</p>
</div>;
export default LogDisplay;
|
test/helpers/shallowRenderHelper.js | jxzsxsp/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/interface/report/index.js | FaideWW/WoWAnalyzer | import React from 'react';
import makeAnalyzerUrl from 'interface/common/makeAnalyzerUrl';
import ReportLoader from './ReportLoader';
import FightSelection from './FightSelection';
import PlayerSelection from './PlayerSelection';
import ConfigLoader from './ConfigLoader';
import SupportChecker from './SupportChecker'... |
src/components/BookingRangeList.js | qandobooking/booking-frontend | import React from 'react';
import { Link } from 'react-router';
import { ListGroup, ListGroupItem } from 'react-bootstrap';
import moment from 'moment';
class BookingRangeItem extends React.Component {
render() {
const { range, showBookingButton, onRangeBooked } = this.props;
const start = moment(range.star... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | hgezim/react-router | import React from 'react';
class Assignment extends React.Component {
render () {
var { courseId, assignmentId } = this.props.params;
var { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
export d... |
react-native/Hello/index.ios.js | yuanzhaokang/myAwesomeSimpleDemo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button,
WebView,
TextInput
} from 'react-native';
export default class Hello extends Component {
constructor(props) {
supe... |
src/modules/page/routes/index.js | CtrHellenicStudies/Commentary | import React from 'react';
import { Route } from 'react-router';
import PageContainer from '../containers/PageContainer';
export default (
<Route
path="/:slug"
component={PageContainer}
/>
);
|
client/containers/App/index.js | lafin/talks-on-map | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import classnames from 'classnames';
import 'bulma/css/bulma.css';
import style from './style.css';
import Header from '../../components/Header';
import Footer from '../../components/Footer';
im... |
demo/client/what-to-eat/src/main.js | ShengGuangzhi/ResumeDemo | import React from 'react';
import ReactDom from 'react-dom';
import App from './component/App.js';
import { DatePicker } from 'antd';
import 'antd/dist/antd.css';
ReactDom.render(<App />, document.getElementsByClassName('J_container')[0]); |
js/index.js | morgante/deceptachat | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('app')
);
|
actor-apps/app-web/src/app/components/common/MentionDropdown.react.js | yangchaogit/actor-platform | import React from 'react';
import classnames from 'classnames';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import { KeyCodes } from 'constants/ActorAppConstants';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
const DROPDOWN_I... |
src/components/Beers.js | ontappl/rn | import React from 'react';
import {
View,
Text,
StyleSheet,
} from 'react-native';
import {colors,} from './styles';
export const Beers = () => (
<View style={styles.wrapper}>
<Text style={styles.text}>
Tutaj znajdzie się wyszukiwarka i lista piw.
</Text>
</View>
);
c... |
src/React/CollapsibleControls/LightControl/example/index.js | Kitware/paraviewweb | import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';
import LightControl from 'paraviewweb/src/React/CollapsibleControls/LightControl';
document.body.style.padding = '10px';
const state = {
enabled: true,
properties: {
lightTerms: {
ka: 1,
kd: 0.3,
ks: 0.5,
... |
src/components/Main.js | Anikinly/hexunsearch | require('normalize.css/normalize.css');
require('styles/App.scss');
require('bootstrap-loader');
import React from 'react';
import { Link } from 'react-router';
import Api from './Api';
import Jsonp from './Jsonp';
import json from 'crawler/result.json';
let hexunlogo = require('../images/logo.jpg');
var hr = requir... |
src/js/components/ui/OwnUserBottomNavBar/OwnUserBottomNavBar.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './OwnUserBottomNavBar.scss';
import translate from "../../../i18n/Translate";
import AuthenticatedComponent from "../../AuthenticatedComponent";
@AuthenticatedComponent
@translate('OwnUserBottomNavBar')
export default cla... |
react-router-demo/lessons/14-whats-next/server.js | zhangjunhd/react-examples | import express from 'express'
import path from 'path'
import compression from 'compression'
import React from 'react'
import { renderToString } from 'react-dom/server'
import { match, RouterContext } from 'react-router'
import routes from './modules/routes'
var app = express()
app.use(compression())
// serve our sta... |
docs/src/app/components/pages/components/AppBar/ExampleIcon.js | spiermar/material-ui | import React from 'react';
import AppBar from 'material-ui/AppBar';
const AppBarExampleIcon = () => (
<AppBar
title="Title"
iconClassNameRight="muidocs-icon-navigation-expand-more"
/>
);
export default AppBarExampleIcon;
|
src/svg-icons/action/flight-land.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
node_modules/enzyme/src/ShallowTraversal.js | bburnett-cpf/react-intro | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import functionName from 'function.prototype.name';
import {
propsOfNode,
splitSelector,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
nodeHasProperty,
} from './Utils';
export function c... |
React Native/Demos/nearby/Nearby/views/list.js | AngryLi/note | /**
* Created by Liyazhou on 16/9/6.
*/
import React from 'react';
import {
View,
StyleSheet,
ScrollView,
Text,
TextInput,
ActivityIndicator,
TouchableOpacity,
LinkingIOS,
AlertIOS,
ActionSheetIOS,
WebView,
AsyncStorage
} from 'react-native';
import Util from './util'... |
src/main.js | edabot/supa | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
im... |
src/index.js | remynaps/colb-ui | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/... |
docs-ui/components/externalLink.stories.js | mvaled/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import ExternalLink from 'app/components/links/externalLink';
storiesOf('UI|Links/ExternalLink', module).add(
'default',
withInfo(
'A normal anchor that opens URL in a new tab accounting for ... |
src/components/footer.js | inkdropapp/docs | import './footer.less'
import React from 'react'
import './header.less'
import { Link } from 'gatsby'
const Footer = () => (
<footer className="app--footer">
<div className="app--footer-content ui container">
<div className="ui stackable grid">
<div className="thirteen wide column links">
... |
src/client/components/Shared/Modal.js | josh--newman/blog | import React from 'react';
import ReactModal from 'react-modal';
import Button from './Button';
import styles from './Modal.css';
class Modal extends React.Component {
state = { open: false, }
static propTypes = {
children: React.PropTypes.shape({
props: React.PropTypes.shape({
onClick: React.Pr... |
components/org.wso2.carbon.business.rules.web/src/index.js | erangatl/carbon-analytics | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.... |
src/components/Radio/Radio.js | hellofresh/janus-dashboard | /* eslint-env jest */
import React from 'react'
import block from '../../helpers/bem-cn'
import './Radio.css'
const radio = block('j-radio')
const Radio = props => {
const { input, id, name, disabled } = props
return (
<div className={radio('wrap')()}>
<input
className={radio('input')()}
... |
src/App.js | freecodecamp-spb/web-dev-cources | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Userbar } from './components/userbar';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-login">
<Userbar />
</div>
<div ... |
public/src/containers/dnd/square.js | white87332/react-redux-sample | import React from 'react';
class Square extends React.Component
{
render()
{
const { black } = this.props;
const backgroundColor = black ? 'black' : 'white';
const color = black ? 'white' : 'black';
return (
<div style={{
color,
backgroundColor... |
src/components/layer/layer.js | yunqiangwu/kmadmin | /* global document */
import { Modal, message } from 'antd'
import React from 'react'
import ReactDOM from 'react-dom'
import classnames from 'classnames'
import styles from './layer.less'
const { info, success, error, warning, confirm } = Modal
const layer = {
prefixCls: 'ant-layer',
index: 1,
info,
success,... |
src/components/FilterBar/FilterBar.js | kendallroth/project_hub | //File: /src/components/FilterBar/FilterBar.js
//Purpose: FilterBar presentational component
import React from 'react';
import PropTypes from 'prop-types';
import SearchBar from 'components/SearchBar';
import IconButton from 'components/IconButton';
import './FilterBar.css';
const FilterBar = ({ filterBarValue,... |
packages/react-app-tools/template/src/index.js | kriasoft/react-app | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
import * as serviceWorker from './serviceWorker';
ReactDOM.hydrate(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() t... |
src/layouts/CoreLayout/CoreLayout.js | LidaDimitriadi/Poker-React | import React from 'react'
import Header from '../../components/Header'
import classes from './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className={classes.mainContainer}>
{children}
</div>
... |
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/Before/app/components/LinkList/index.js | phiratio/Pluralsight-materials | /**
*
* LinkList
*
*/
import React from 'react';
import Link from '../Link';
import styles from './styles.css';
function LinkList({ links, topicName, children }) {
const linkNodes = links.map(l => (
<Link
key={l.id}
link={l}
/>
));
return (
<div className={styles.linkList}>
<h1>{... |
rhyme-react/src/App.js | petroleyum/rhyme-schemer | import React, { Component } from 'react';
import './App.css';
import Song from './Song.js';
import SongInput from './SongInput.js';
import SongOutput from './SongOutput.js';
import SongModel from './models/SongModel.js'
import Header from './Header.js'
class App extends Component {
constructor(props) {
super(pr... |
src/components/PaginationContainer.js | joellanciaux/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from '../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import { classNamesForComponentSelector, stylesForComponentSelector } from... |
src/assertions/shallowAgainstRawAssertions.js | bruderstein/unexpected-react | import RenderHook from 'react-render-hook';
import ReactElementAdapter from 'unexpected-htmllike-jsx-adapter';
import RawAdapter from 'unexpected-htmllike-raw-adapter';
import React from 'react';
import TestUtils from 'react-dom/test-utils';
import AssertionGenerator from './AssertionGenerator';
import { triggerEvent }... |
app/js/components/Content.js | spyl94/react-brunch-demo | import React from 'react';
import { connect, type Connector } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import type { State } from '../types';
type Props = {| count: number |};
const Content = ({ count }: Props) =>
<FormattedMessage
id="value"
defaultMessage="Current value: {count}"
... |
test/test_helper.js | kenken64/StackupJSPlayground | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/rows/presentation/Depreciation.js | hikurangi/day-rate-calculator | import React from 'react';
import { TableRow, TableRowColumn } from '@material-ui/core/Table';
const Depreciation = ({ style, depreciation }) => {
return (
<TableRow>
<TableRowColumn>
<h3>Depreciation over three years</h3>
</TableRowColumn>
<TableRowColumn>
<p style={style.outpu... |
src/components/Sidebar/Author/Author.js | bodguy/bodguy.github.io | // @flow strict
import React from 'react';
import { withPrefix, Link } from 'gatsby';
import styles from './Author.module.scss';
type Props = {
author: {
name: string,
bio: string,
photo: string
},
isIndex: ?boolean
};
const Author = ({ author, isIndex }: Props) => (
<div className={styles['author... |
src/js/components/date-selector.js | donnierayjones/dayone-js-html | import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
export default class DateSelector extends React.Component {
constructor(props) {
super(props);
this.state = {
date: props.date
};
this.onChange = this.onChange.bind(this)
}
onChange() {
var value = $(... |
src/components/vagrant/plain/VagrantPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './VagrantPlain.svg'
/** VagrantPlain */
function VagrantPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'VagrantPlain' + ' ' + className... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js | dpoineau/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/screens/splashScreen.js | SwimmyApp/project-swimmy-mockup | import React from 'react';
import {observer} from 'mobx-react';
import views from '../config/views';
import AppWrapper from '../components/appWrapper'
import * as styles from './styles/splashScreenStyles.scss';
class SplashScreen extends React.Component {
render() {
const { store } = this.props;
const {route... |
docs/src/app/components/pages/components/List/ExampleSimple.js | skarnecki/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentSend from 'material-ui/svg-icons/content/send';
... |
modules/RouteContext.js | malte-wessel/react-router | import warning from './warning'
import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*... |
client/admin/rooms/RoomsPage.js | Sing-Li/Rocket.Chat | import React from 'react';
import Page from '../../components/basic/Page';
import VerticalBar from '../../components/basic/VerticalBar';
import { useTranslation } from '../../contexts/TranslationContext';
import { useRouteParameter, useRoute } from '../../contexts/RouterContext';
import { EditRoomContextBar } from './... |
src/routes/dashboard/components/quote.js | shaohuawang2015/goldbeans-admin | import React from 'react'
import PropTypes from 'prop-types'
import styles from './quote.less'
function Quote ({ name, content, title, avatar }) {
return (
<div className={styles.quote}>
<div className={styles.inner}>
{content}
</div>
<div className={styles.footer}>
<div classNa... |
app/js/components/SupportButton.js | blockstack/blockstack-browser | import React from 'react'
import PropTypes from 'prop-types'
const SupportButton = props => (
<div className="support-floater clickable" onClick={props.onClick}>
?
</div>
)
SupportButton.propTypes = {
onClick: PropTypes.func
}
export default SupportButton
|
examples/react-client/src/routes/shows/ShowsRoute.js | mobx-little-router/mobx-little-router | import React from 'react'
import { inject, observer } from 'mobx-react'
import { Link, withRouter } from 'mobx-little-router-react'
import styled, { keyframes } from 'styled-components'
const ShowsRoute = ({ router, route, ShowsStore, className }) =>
<Container className={className}>
<SearchHeader>
<Search... |
src/pages/books.js | H3yfinn/finbarmaunsell.com | /*import React from 'react';
import Link from 'gatsby-link';
import Footer from './components/footer.js'
import me from './images/me_tonga.png';
*/
import React from 'react'
import App from './components/Books/App'
import './components/Books/static/index.css'
import { createStore, applyMiddleware } from 'redux'
import ... |
src/components/common/ModalEdit.js | AnisaIshmail/IdeaZone | // modal for adding an idea and editing / updating an idea
import React from 'react';
/*global $*/
const ModalEdit = (props) => {
//console.log('modalEdit data: ', props.ideaData);
let prevTitle = props.ideaData.title,
prevDesc = props.ideaData.description,
prevImg = props.ideaData.imageUrl,
prevTag... |
src/svg-icons/hardware/laptop-chromebook.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopChromebook = (props) => (
<SvgIcon {...props}>
<path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/>
</SvgIcon>
);
HardwareLaptopChromebook = pure(HardwareLaptopChromebook);
Har... |
src/utils/ownerDocument.js | cesarandreu/react-overlays | import React from 'react';
import ownerDocument from 'dom-helpers/ownerDocument';
export default function (componentOrElement) {
return ownerDocument(React.findDOMNode(componentOrElement));
}
|
drag/src/index.js | alcat2008/web-demo | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
yycomponent/select/Select.js | 77ircloud/yycomponent | import React from 'react';
import { Select as _Select } from 'antd';
const getPopupContainer=(target)=>{//弹框挂载点
if(target&&target.closest&&target.closest('.body')){
return target.closest('.body');
}
return document.body;
};
class Select extends React.Component{
constructor(props){
super(props);
}
... |
examples/official-storybook/components/ImportedPropsButton.js | rhalff/storybook | import React from 'react';
import DocgenButton from './DocgenButton';
/** Button component description */
const ImportedPropsButton = ({ disabled, label, onClick }) => (
<button disabled={disabled} onClick={onClick}>
{label}
</button>
);
ImportedPropsButton.defaultProps = DocgenButton.defaultProps;
ImportedP... |
fixtures/ssr/src/index.js | terminatorheart/react | import React from 'react';
import {createRoot} from 'react-dom';
import App from './components/App';
let root = createRoot(document, {hydrate: true});
root.render(<App assets={window.assetManifest} />);
|
example_components/ButtonWithException.react.js | blueberryapps/react-bluekit | import Component from '../src/app/PureRenderComponent.react';
import Radium from 'radium';
import React from 'react';
import RPT from 'prop-types';
import Spinner from './Spinner.react';
@Radium
export default class ButtonWithException extends Component {
static propTypes = {
children: RPT.any.isRequired,... |
frontend/component/Notification.js | huangyinwu/pratice-nodejs-project | import React from 'react';
import {Link} from 'react-router';
import jQuery from 'jquery';
import {notificationList, notificationSetRead} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Notification extends React.Component {
constructor(props) {
super(props);
this.state ... |
react_native_frontend/src/pages/privacy.js | CUNYTech/BudgetApp | import React, { Component } from 'react';
import { View, StyleSheet, TouchableOpacity, ScrollView } from 'react-native';
import { BackgroundWrapper } from '../components';
import { Container, Content, Text, Left, transparent, Right, Body, ListItem, Switch, Badge, Spinner } from 'native-base';
import Icon from 'react-na... |
examples/1-multi/src/login/components/App.js | chikara-chan/react-power | import React from 'react'
import styles from './App.scss'
function App() {
return (
<div>
<h1 className={styles.title}>Login</h1>
</div>
)
}
export default App
|
public/js/materialize-css/CardAction.js | Morton/pixelDailiesGallery | import React from 'react';
var CardAction = React.createClass({
render: function() {
return <div className="card-action">
<a href={this.props.href} target={this.props.target}>{this.props.children}</a>
</div>;
}
});
export default CardAction; |
docs/src/app/components/pages/components/Slider/ExampleSimple.js | andrejunges/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
/**
* The `defaultValue` property sets the initial position of the slider. The slider
* appearance changes when not at the starting position.
*/
const SliderExampleSimple = () => (
<div>
<Slider />
<Slider defaultValue={0.5} />
<Slide... |
app/components/main/TitleCurrentTime.js | sheldhur/Vector | import React, { Component } from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
class TitleCurrentTime extends Component {
render = () => {
const { currentTime, timeAvg } = this.props;
const timeFormat = timeAvg.by.startsWith('min') ? 'DD-MM-YYYY HH:mm' : 'DD-MM-YYYY HH:mm:ss';... |
site/components/StaticHTMLBlock.js | nickknw/react-dnd | import React from 'react';
import CodeBlock from './CodeBlock';
export default class StaticHTMLBlock {
static propTypes = {
html: React.PropTypes.string.isRequired
};
render() {
const { html } = this.props;
// Here goes a really hack-ish way to convert
// areas separated by Markdown <hr>s into ... |
src/components/RendererSetup.js | ballercat/die-young | import React, { Component } from 'react';
import { tap, compose, curry } from 'ramda';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import { CardActions } from 'material-ui/Card';
const getValue = (e, value) => value;
const toObject = curry((dim, value) => ({ [dim... |
src/js/components/tool-header.js | training4developers/react_redux_12122016 | /* @flow */
import React from 'react';
type ToolHeaderProps = {
caption: string,
};
export const ToolHeader = (props: ToolHeaderProps) => <header>
<h1>{props.caption}</h1>
</header>;
ToolHeader.propTypes = {
caption: React.PropTypes.string
};
|
src/svg-icons/communication/phonelink-lock.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkLock = (props) => (
<SvgIcon {...props}>
<path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ... |
src/index.js | redian/weather-mate | import React from 'react';
import ReactDOM from 'react-dom';
import theme from './toolbox/theme.js'
import ThemeProvider from 'react-toolbox/lib/ThemeProvider';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './toolbox/theme.css';
ReactDOM.render(
<ThemeProvider theme={t... |
node_modules/react-bootstrap/es/Navbar.js | CallumRocks/ReduxSimpleStarter | 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 ... |
es/utils/injectMediaSources.js | welovekpop/uwave-web-welovekpop.club | import _extends from "@babel/runtime/helpers/builtin/extends";
import _assertThisInitialized from "@babel/runtime/helpers/builtin/assertThisInitialized";
import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose";
import React from 'react';
import PropTypes from 'prop-types';
function getComponentName(C... |
internals/templates/app.js | kenzanboo/tumbler-blog-api | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved, import/extensions */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].... |
pollard/components/SearchSongButton.js | spncrlkt/pollard | import React, { Component } from 'react';
export default class SearchSongButton extends Component {
render() {
const {
isSearching,
onClick,
} = this.props;
return (
<button
id="SearchSongButton"
type="button"
className="btn btn-primary col-xs-10 col-xs-offset-1... |
src/components/Found.js | bernatixer/ConnectedCars | import React, { Component } from 'react';
class Found extends Component {
render() {
return (
<form>
<input />
</form>
);
}
}
export default Found;
|
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PureComponent.js | mroch/flow | // @flow
import React from 'react';
class MyComponent extends React.PureComponent {
static defaultProps: DefaultProps = {};
props: Props;
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Pure... |
js/jqwidgets/demos/react/app/grid/popupediting/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
import JqxNumberInput from '../../../jqwidgets-react/rea... |
fields/types/password/PasswordColumn.js | davibe/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropType... |
webpack/components/ShoppingCart.js | westcoastavgallery/westcoastavgallery.github.io | import React, { Component } from 'react';
import {Container, connect} from '@cerebral/react'
import {state, signal} from 'cerebral/tags'
import SkyLight from 'react-skylight';
class ShoppingCart extends Component {
render() {
return (
<div>123MOMasdfsadfsOasdfHey, y’all!!!adsfsadf</div>
)
}
}
// exp... |
src/common/containers/Profile.js | strekmann/node-boilerplate | import React from 'react';
import { Grid, Row, Col } from 'react-bootstrap';
import { connect } from 'react-redux';
import Immutable from 'immutable';
class Profile extends React.Component {
render() {
const user = this.props.users.get(this.props.user.get('id'));
return (
<Grid>
... |
app/containers/Dashboard/index.js | beingmohit/tranium | import React from 'react';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import Content from '../../components/Content';
import Block from '../../components/Block';
import styles from './styles.css';
const Dashboard = (props) => (
<Content compact className={styles.root}>
<Block>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.