path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
dashboard/src/index.js
checkr/codeflow
import React from 'react' import { render } from 'react-dom' import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import Root from './containers/Root' import configureStore from './store/configureStore' const store = configureStore() const history = syncHistoryWithSto...
code/L6/React Page Routing using React-Router/components/app.js
santhoshthepro/reactjs
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory } from 'react-router'; // Components import HomePage from './home/home-page'; import MoviesPage from './movies/movies-page'; import ContactPage from './contact/contact-page'; //ES6 Const const app = document.getElemen...
src/browser/index.js
carnesen/mathjs-app
import React from 'react' import ReactDOM from 'react-dom' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import { Provider } from 'react-redux' import io from 'socket.io-client' import 'roboto-fontface/css/roboto/roboto-fontface.css' import '@carnesen/styles/css/default.css' import RootComponent ...
docs/src/routes/not-found/index.js
bmatthews/haze-lea
/** * 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 Layout from '../../co...
react/features/local-recording/components/LocalRecordingButton.js
bgrozev/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import { translate } from '../../base/i18n'; import { IconRec } from '../../base/icons'; import { ToolbarButton } from '../../toolbox'; /** * The type of the React {@code Component} state of * {@link LocalRecordingButton}. */ type Props = { /** * Whe...
04/EW/trding/trding/src/UserContext.js
rgllm/uminho
import React from 'react'; export const UserContext = React.createContext({ user: {logged: false, data: undefined,}, setUser : () => {} });
public/src/js/components/header.js
asarode/learn-buckets
import React from 'react'; import { RouteHandler, Navigation } from 'react-router'; class Header extends React.Component { constructor(props) { super(props) this.state = {}; } render() { return ( <div> <div className="col-xs-8"> <h1>Learn Buckets</h1> </div> </div> ) } } Header.context...
src/index.js
caesarsol/sequencer
import React from 'react' import ReactDOM from 'react-dom' import App from 'components/App' import 'tachyons' ReactDOM.render(<App />, document.getElementById('root')) // import 'lib/math-synth'
modules/__tests__/createRoutesFromReactChildren-test.js
joeyates/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import { createRoutesFromReactChildren } from '../RouteUtils' import IndexRoute from '../IndexRoute' import Route from '../Route' describe('createRoutesFromReactChildren', function () { const Parent = React.cr...
packages/wix-style-react/src/GenericModalLayout/docs/modalWrapper.js
wix/wix-style-react
import React from 'react'; import { Button, Modal } from 'wix-style-react'; export class ModalWrapper extends React.Component { state = { isModalOpen: false, }; openModal = () => { this.setState({ isModalOpen: true }); }; closeModal = () => { this.setState({ isModalOpen: false }); }; render...
app/components/link2.js
varunagg45/webpack-react-sample-project
import React from 'react'; export default React.createClass({ getInitialState: function() { return { 'page': 'This is from Link 2' }; }, render: function() { return ( <div>{this.state.page}</div> ); } });
Web Developer Skills/Learn ReactJS Part II/Unit 01 Stateless Components Inherit From Stateful Components/02 Build a Stateful Component Class/Parent.js
ummahusla/codecademy-exercise-answers
import React from 'react'; import ReactDOM from 'react-dom'; class Parent extends React.Component { constructor(props) { super(props) this.state = { name: 'Frarthur'} } render() { return <div></div>; } }
src/packages/recompose/__tests__/mapPropsStream-test.js
acdlite/recompose
import React from 'react' import { mount } from 'enzyme' import setObservableConfig from '../setObservableConfig' import rxjs4Config from '../rxjs4ObservableConfig' import { mapPropsStream } from '../' setObservableConfig(rxjs4Config) // Most of mapPropsStream's functionality is covered by componentFromStream test('m...
js/components/taskEdit/tabItems.js
bsusta/HelpdeskAppTemplate
import React, { Component } from 'react'; import { Right, Left, Container, Content, Card, CardItem, Text, Body, Footer, FooterTab, Button, Icon } from 'native-base'; import { withApollo } from 'react-apollo'; import styles from './styles'; import { Actions } from 'react-native-router-flux'; import { ActivityIndicator...
client/modules/core/components/.stories/navigation.js
hacksong2016/angel
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import Navigation from '../navigation'; storiesOf('core.Navigation', module) .add('default view', () => { return ( <Navigation /> ); });
stories/Mention/SimpleMentionEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; import createMentionPlugin, { defaultSuggestionsFilter } from 'draft-js-mention-plugin'; import editorStyles from './editorStyles.css'; import mentions from './mentions'; const mentionPlugin ...
src/Pagination/test/PaginationSpec.js
suitejs/suite
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import { getDOMNode, innerText } from '@test/testUtils'; import Pagination from '../Pagination'; describe('Pagination', () => { it('Should render a ul', () => { const instance = getDOMNode(<Pagination />); assert.equal(instance.tag...
analysis/druidferal/src/modules/spells/ThrashHitCount.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import { ThresholdStyle } from 'parser/core/ParseResults'; import { STATISTIC_ORDER } from 'parser/ui/StatisticBox'; import React from 'react'; import HitCountAoE from '../core/HitCountAoE'; /** * Even with ...
fields/components/columns/InvalidColumn.js
jacargentina/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var InvalidColumn = React.createClass({ displayName: 'InvalidColumn', propTypes: { col: React.PropTypes.object, }, renderValue () { return ( <ItemsTableVal...
app/components/PropsRoute.js
DrPandemic/TwiolioRN
// @flow import React from 'react'; import { Route } from 'react-router-native'; const renderMergedProps = (component, ...rest) => { const finalProps = Object.assign({}, ...rest); return ( React.createElement(component, finalProps) ); }; export default ({ component, ...rest }) => ( <Route {...rest} render...
ui/InputText/index.js
mymaytang/maytang.co-ui
import React from 'react' import { Input, Label, ContainerDiv } from '../Core' import './InputText.less' export default class InputText extends React.Component { static defaultProps = { id: null, label: null, placeholder: '', width: undefined } constructor() { super() } componentWillMo...
modules/RouteContext.js
barretts/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
frontend/src/components/dialog/sysadmin-dialog/sysadmin-add-department-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Input, Form, FormGroup, Label } from 'reactstrap'; import { gettext, orgID } from '../../../utils/constants'; import { seafileAPI } from '../../../utils/seafile-api'; const propTypes = { groupI...
src/views/components/AutomationEditTrigger.js
physiii/home-gateway
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {withRouter} from 'react-router-dom'; import ChooseDeviceScreen from './ChooseDeviceScreen.js'; import AutomationChooseServiceTriggerScreen from './AutomationChooseServiceTriggerScreen.js'; import {getDevicesWithA...
src/views/pages/unused/LearnerStatusEntryPage.js
Domiii/project-empire
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { dataBind } from 'dbdi/react'; import { Alert, Button, Jumbotron, Well, Panel } from 'react-bootstrap'; import { LoadOverlay } from 'src/views/components/overlays'; import LearnerStatusEntryForm from 'src/views/components/scaffol...
src/components/Welcome/index.js
kkav004/react-native-redux-real-world
import React from 'react'; import { View, Text } from 'react-native'; import styles from './styles'; const Welcome = () => ( <View style={styles.container}> <Text style={styles.welcome}> It works &#92;o/ ! </Text> </View> ); export default Welcome;
test/AlertSpec.js
albertojacini/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Alert from '../src/Alert'; describe('Alert', () => { it('Should output a alert with message', () => { let instance = ReactTestUtils.renderIntoDocument( <Alert> <strong>Message</strong> </Alert> ); ...
src/interface/character/Page.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import DocumentTitle from 'interface/common/DocumentTitle'; import NavigationBar from 'interface/layout/NavigationBar'; import Parses from './Parses'; class Page extends React.PureComponent { static propTypes = { region: PropTypes.string.isRequired...
src/components/new-person.js
osxi/react-pouch-redux-starter-kit
'use strict'; import { upsertPerson } from '../redux/actions'; import store from '../redux/store'; import MUI from 'material-ui'; import React from 'react'; const { RaisedButton, TextField } = MUI; export default React.createClass({ _submitHandler() { let { newPersonName } = this.refs; store.dispatch(...
frontend/Stories/StoryList.js
fdemian/Morpheus
import React from 'react'; import StoryElement from './StoryElement'; const StoryList = ({storiesList, history, loggedIn, deleteFn, editFn}) => ( <div> {storiesList.map((story, i) => <div key={i}> <StoryElement story={story} history={history} loggedIn={loggedIn} deleteFn={deleteFn} editFn={editFn} /> <...
src/containers/verify_forgot_password_wrapper.js
TedtheDev/Tic-Tac-Toe
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import axios from 'axios'; import VerifyForgotPassword from '../components/verify_forgot_password'; // Wrapper component to hold all logic to verify player's // reset password and update it via an API call when validated class VerifyForg...
examples/react-router/src/index.js
joshblack/carbon-components-react
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import { BrowserRouter as Router } from 'react-router-dom'; ReactDOM.render( <Router> <App /> </Router>, document.getElementById('root') ); // If you ...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
df-a/par-cw
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/user/Profile.js
teamNOne/showdown
import React from 'react'; // import UserStore from '../../stores/UserStore'; // import Combatant from '../combatant/Combatant'; export default class Profile extends React.Component { render() { return ( <div> <button>Change Password</button> </div> ) } ...
app/setup.js
samtgarson/MyFirstReactNativeApp
import App from './components/App'; import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from './store'; const store = configureStore(); function setup() { class Root extends Component { render() { return ( <Provider store={store}> <App ...
src/index.js
code-vagabond/journey_planner
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Grid, Segment } from 'semantic-ui-react'; import Slider from 'react-rangeslider' import App from './components/app'; import SearchBar from './components/se...
docs/src/main.js
adamrneary/nuclear-js
import React from 'react' import ItemFilterExample from './components/item-filter-example' import addScrollClass from './utils/scroll-class' addScrollClass("scrolled") render(ItemFilterExample, 'item-filter-example') updateSideBar() function render(component, id) { var el = document.getElementById(id) if (el) {...
src/Requirements.js
davty/x-effect
import React, { Component } from 'react'; import { func } from 'prop-types'; import './Requirements.css'; class Requirements extends Component { constructor() { super(); this.state = { requirements: '' }; this.onChange = this.onChange.bind(this); } onChange(event) { const { onRequirementsChange...
packages/react-router/modules/__tests__/Route-test.js
asaf/react-router
import React from 'react' import ReactDOM from 'react-dom' import createMemoryHistory from 'history/createMemoryHistory' import MemoryRouter from '../MemoryRouter' import Router from '../Router' import Route from '../Route' describe('A <Route>', () => { it('renders at the root', () => { const TEXT = 'Mrs. Kato' ...
src/modules/Form/components/Forms.js
YBox-POS/possys
import React from 'react'; import { Text, Image, View,ScrollView } from 'react-native'; import GridView from 'react-native-super-grid'; import { List, ListItem, Button,Grid, Row, Col} from 'react-native-elements'; import styles from './styles'; import Screens from '../../../components/commons/Screen' import Formtopico...
frontend/app/js/components/rules_v2/index.js
serverboards/serverboards
import React from 'react' import i18n from 'app/utils/i18n' import { goto, set_modal } from 'app/utils/store' import cache from 'app/utils/cache' import Rule from 'app/containers/rules_v2/rule' import RuleAdd from 'app/containers/rules_v2/add' import { sort_by_name, colorize, map_get, servername } from 'app/utils' impo...
html.js
islas27/islas27.github.io
import React from 'react' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ displayName: 'HTML', propTypes: { body: React.PropTypes.string, }, render() { const {body, route} = this....
examples/pages/hello/client.js
jeffhandley/react-composite-pages
import React from 'react'; import ReactDOM from 'react-dom'; import Hello from './Hello'; import { getContainerState } from 'react-composite-pages/client'; const state = getContainerState('hello-container'); const container = document.getElementById('hello-container'); ReactDOM.render( <Hello to={state.to} />, ...
Native/Learn_Style/index.android.js
renxlWin/React-Native_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Learn_Style extends Component { render() { return ( <View style={styles.contain...
src/components/molecules/social-icons-with-label.js
jameslutley/jameslutley.com
import React from 'react' import styled from 'react-emotion' import t from 'tachyons-js' import Icon from 'react-icons-kit' import { twitter } from 'react-icons-kit/fa/twitter' import { instagram } from 'react-icons-kit/fa/instagram' import { dribbble } from 'react-icons-kit/fa/dribbble' import { github } from 'react-i...
StarterRNP/src/screens/common/Card.js
khanhqd/ProjectOT1
import React, { Component } from 'react'; import { View, Text } from 'react-native'; const Card = (props) => { // const { cardStyle } = styles; return ( <View style={styles.container}> {props.children} </View> ) } const styles={ container: { borderWidth:1, borderRadius:3, border...
example/test/components/Title.js
wyze/redux-debounce
import { shallow } from 'enzyme' import React from 'react' import Title from '../../src/components/Title.jsx' import test from 'ava' test('renders a value', t => { const component = shallow(<Title />) t.is(component.find('h1').text(), 'redux-debounce demo') })
server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.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...
ajax/libs/react-instantsearch/4.1.2/Dom.js
jdh8/cdnjs
/*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
src/config/viewPluginPlain.js
timscott/react-devise
import React from 'react'; import {Link} from 'react-router-dom'; const plugin = ({ formProps = { className: 'auth-form' }, formErrorProps = { className: 'auth-error', style: { marginTop: '5px', color: 'red' } }, formSuccessProps = { className: 'auth-success', style: { ...
src/components/UserMenu.js
branch-bookkeeper/pina
import React from 'react'; import PropTypes from 'prop-types'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; const propTypes = { onOpenSettings: PropTypes.func, onLogout: PropTypes.func, open: PropTypes.bool, anchorEl: PropTypes.object, anchorOrigin: ...
src/templates/Template.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import { get } from 'lodash'; import MessageIcons from './helpers/MessageIcons'; import Server from "../helpers/Server"; /** * This is a template for a new component. * To use it: * 1. Rename all occurrences of NewComponentTemplate to your component nam...
desktop/apps/auction2/components/works_by_followed_artists/index.js
dblock/force
import { nextPageOfFollowedArtistArtworks, previousPageOfFollowedArtistArtworks } from '../../actions' import classNames from 'classnames' import AuctionGridArtwork from '../auction_grid_artwork' import ChevronLeft from '../../../../components/main_layout/public/icons/chevron-left.svg' import ChevronRight from '../../....
app/js/main.js
Tequila-js/code_dojos
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import {Router, Route, Link, hashHistory } from 'react-router'; import Header from './Component/Header'; import Members from './Scenario/Members'; import Katas from './Scenario/Katas' import Details from './Scenario/Details' import NotFoundPag...
app/user/modal.js
lagden/es6-react
'use strict'; import React from 'react'; import {userInfo} from '../tools/utility'; let el = React.createElement; class UserModal extends React.Component { constructor(props) { super(props); this.state = { data: {}, open: false }; } componentWillReceiveProps(props) { this.props = p...
src/main/js/players/components/PlayerHatedAffinities.js
Bernardo-MG/dreadball-toolkit-webpage
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import Box from 'grommet/components/Box'; import Label from 'grommet/components/Label'; import Title from 'grommet/components/Title'; import playerMessages from 'i18n/player'; import affinityMessages from 'i18n/a...
docs/app/Examples/collections/Grid/Variations/GridExampleCentered.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleCentered = () => ( <Grid centered columns={2}> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> <Grid.Row centered columns={4}> <Grid.Column> <Imag...
src/spares/toggle/Toggle.js
korchemkin/spares-uikit
/** * * Spares-uikit * * @author Dmitri Korchemkin * @source https://github.com/korchemkin/spares-uikit */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './Toggle.css'; class Toggle extends Component { constructor(props) { super(props); this.toggle = thi...
example/src/index.js
erikras/redux-spy
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import reducer from './reducer' const dest = document.getElementById('content') const store = (window.devToolsExtension ? window.devToolsExtension()(createStore) : createStore)(reduce...
test/test_helper.js
blanck-space/reacTube
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...
admin/lib/dashboard/components/PluginManager.js
synthesis-js/react-synthesis
// PluginManager.js import React from 'react'; export default class PluginManager extends React.Component { constructor(props) { super(props); this.displayName = 'PluginManager'; } render() { let installedPlugins = this.props.installedPlugins; let installedList = installedPlugins.map((plugin, i) =...
frontend/components/rss-registration/form.js
apostolidhs/wiregoose
import React from 'react'; import Form from 'react-bootstrap/lib/Form'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Col from 'react-bootstrap/lib/Col'; import FormControl from 'react-bootstrap/lib/FormControl'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import Button from 'react-boot...
tests/react_custom_funs/create_factory.js
JonathanUsername/flow
// @flow import React from 'react'; declare var any: any; React.createFactory(any)(); // OK React.createFactory(any)({}); // OK React.createFactory(any)(undefined); // OK React.createFactory(any)(null); // OK class A extends React.Component<{foo: number, bar: number}, void> {} function B(props: {foo: number, bar: n...
src/routes/Home/Home.js
townmi/ReactExamples
/** * */ import React, { Component } from 'react'; import axios from 'axios'; import { Link } from 'react-router'; import Load from '../../components/Load'; import Page from '../../components/Page'; import './home.scss'; class Home extends Component { constructor(props) { super(props); this.st...
test/integration/client-navigation/pages/fragment-syntax.js
JeromeFitz/next.js
/* eslint-disable */ import React from 'react' export default () => <>My component!</>
src/components/calendar/content/rows.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; const Rows = ({rows}) => { const rowsLength = rows.length; const styles = { gridTemplateRows: `repeat(${rowsLength}, calc(${73 / rowsLength}vh - ${4 / rowsLength}px))` }; return ( <div className="calendar__body" style={styles}> {rows...
client/index.js
zhenyulin/ultimate-hot-boilerplate
import React from 'react'; import { render } from 'react-dom'; import App from './app'; const renderToPage = Component => { render(<Component />, document.getElementById('app')); }; renderToPage(App); if (process.env.NODE_ENV === 'development' && module.hot) { module.hot.accept('./app', () => { const HotApp...
src/playground/index.js
arqex/react-datetime
// This is the entry file for the playground, not part of the library // it's used by running `npm run playground` import React from 'react'; import ReactDOM from 'react-dom'; import '../../css/react-datetime.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
web/app/components/sections/stat/routes/OverviewSection.js
sunkeyhub/jedi_monitor
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ReactDOM from 'react-dom'; import { Icon } from 'antd'; import echarts from 'echarts'; class OverviewSection extends Component { componentDidMount() { var lineChartTpl = { title: { text: '' ...
app/assets/frontend/components/users/presentation/LoginPage.spec.js
prdx/kasih.in
import React from 'react'; import expect from 'expect'; import { shallow } from 'enzyme'; import LoginPage from './LoginPage.js'; import sinon from 'sinon'; import TextField from 'material-ui/TextField'; import Checkbox from 'material-ui/Checkbox'; import CircularProgress from 'material-ui/CircularProgress'; describe...
src/components/demo/side_menu.js
VicStor/react-pdf-viewer
import React from 'react'; import Toggle from 'material-ui/Toggle'; import SidebarSection from './sidebar_section'; import Form from '../helpers/form'; import Input from '../helpers/input'; import DropZone from './drop_zone'; // convert image.pdf[0] image.jpg const SideMenu = ({ renderToggleHandler, renderToSvg, se...
client/memories.js
BillZito/greenfield
import React from 'react'; import { StyleSheet, AsyncStorage, View, Text, TouchableHighlight, Image } from 'react-native'; import { Font } from 'exponent'; import { Container, Header, Title, Content, Footer, InputGroup, Input, Button } from 'native-base'; import { Ionicons } from '@exponent/vector-icons'; ...
client/src/components/BudgetTable.js
Nauktis/inab
import React from 'react'; import { getCategoryGroups } from '../selectors/categoryGroups'; import { getCategoriesByGroupId } from '../selectors/categories'; import { getSelectedMonthBudgetItemsByCategoryId, getBudgetItemsSumUpToSelectedMonthByCategoryId } from '../selectors/budgetItems'; import { getTransactionsSumUpT...
src/components/AddTodo.js
cmd-kvn/one_file_todo_redux
import React from 'react'; import PropTypes from 'prop-types'; const AddTodo = ({ handleSubmit }) => { /* the handleSubmit function from App is on the props object */ let inputText; return ( <div> <form onSubmit={e => { e.preventDefault(); ...
src/components/course/CourseForm.spec.js
simonpkerr/react-redux
import expect from 'expect'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import CourseForm from './CourseForm'; function setup (saving) { let props = { course: {}, saving: saving, errors: {}, onSave: () => {}, onChange: () => {} }; let renderer = TestUtils.crea...
src/js/app/components/Footer.js
FlyBase/gene2function
import React from 'react'; export default class Footer extends React.Component { render() { return ( <div className="container"> <p className="text-muted"> This site is brought to you by <a href="http://flybase.org">FlyBase</a> & the <a href="http://www.flyrn...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/LifeCycle/LifeCycleHistory.js
Minoli/carbon-apimgt
/* * Copyright (c) 2017, 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.org/li...
src/index.js
css459/personal-website
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
formUtil.js
moe3000/render-generate
import React from 'react'; import { Form, Input, Row, Col, Button, DatePicker, Select, Icon, Radio, InputNumber, Checkbox, message, Upload, notification } from 'antd'; const FormItem = Form.Item; const RadioGroup = Radio.Group; const CheckboxGro...
fields/types/cloudinaryimage/CloudinaryImageField.js
matthieugayon/keystone
import xhr from 'xhr'; import React from 'react'; import ReactDOM from 'react-dom'; import Field from '../Field'; import Select from 'react-select'; import { Button, FormField, FormInput, FormNote } from 'elemental'; import Lightbox from '../../components/Lightbox'; import classnames from 'classnames'; const SUPPORTE...
packages/wix-style-react/src/TableActionCell/HoverSlot/HoverSlot.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { st, classes } from '../TableActionCell.st.css'; const HoverSlot = ({ display, children, ...props }) => ( <span className={st(classes.hoverSlot, classes[display])} {...props}> {children} </span> ); HoverSlot.propTypes = { display: PropTy...
src/svg-icons/communication/call-received.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallReceived = (props) => ( <SvgIcon {...props}> <path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/> </SvgIcon> ); CommunicationCallReceived = pure(CommunicationCallReceived); CommunicationCa...
src/app.js
kbeathanabhotla/react-safari
import React from 'react'; import ReactDOM from 'react-dom'; import NavBar from './components/NavBar'; import Page from './components/Page'; class App extends React.Component { render() { return ( <div id="content"> <NavBar userName="Sai" /> <Page> <h1> Hello World! ...
src/Parser/DemonologyWarlock/Modules/Features/DoomguardInfernal.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Combatants from 'Parser/Core/Modules/Combatants'; import { calculateMaxCasts } from 'Parser/Core/getCastEfficiency'; import SPELLS from 'common/SPELLS'; import SpellLink from 'co...
src/routes/account/Role/index.js
pmg1989/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { checkPower } from 'utils' import { ADD, UPDATE, DELETE } from 'constants/options' import RoleList from './List' import RoleSearch from './Search' import RoleModal from './ModalForm' const namespace = 'accountRole' func...
node_modules/react-router/es6/Route.js
sharonjean/React-Netflix
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
tp-2/marisol/src/sovos-reactivo/componentes/new/NewContent.js
solp/sovos-reactivo-2017
import React from 'react'; class NewContent extends React.Component{ render(){ return( <p> {this.props.New.content} </p> ); } } export default NewContent;
frontend/src/components/InsightsDashboard.js
WildflowerSchools/sensei
import React from 'react'; import _ from 'lodash'; import d3 from 'd3'; import {Grid, Row, Col, Thumbnail, Button, ButtonToolbar} from 'react-bootstrap'; import {frontendBaseUrl, getClassroomId, getSchoolId} from './../constants'; import './InsightsDashboard.css'; class InsightsDashboard extends React.Component { c...
src/svg-icons/av/playlist-add-check.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistAddCheck = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/> </SvgIcon> ); AvPlaylistAddCheck = pure...
app/components/CompList.js
FermORG/FermionJS
// @flow import React, { Component } from 'react'; import styles from './photon.scss'; import panelStyles from './Panels.scss'; import { WORKSPACE_ID } from '../constants'; // import { Link } from 'react-router-dom'; // import BlackBox from './VisComponents/BlackBox'; // function List(props){ class List extends Compo...
packages/gatsby-codemods/src/transforms/__testfixtures__/navigate-calls/existing-esm-import.output.js
mingaldrichgan/gatsby
/* eslint-disable */ import React from 'react'; import { graphql, navigate } from 'gatsby'; export default function Example() { return <button onClick={() => navigate('/sample')}>waddup</button>; } export const pageQuery = graphql` query { allSitePages { prefix } } `;
src/svg-icons/action/watch-later.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js
amido/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(prefix) { return [ { id: 1, [`${prefi...
src/svg-icons/editor/border-top.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderTop = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h...
src/svg-icons/content/save.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSave = (props) => ( <SvgIcon {...props}> <path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/> </Svg...
es/components/style/form-number-input.js
cvdlab/react-planner
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; }; var _createClass = function () { function defineProperties(ta...
test/NavSpec.js
kwnccc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; import Button from '../src/Button'; describe('Nav', function () { it('Should set the correct item active', function () { let instance = ReactTestUtils.renderIntoDo...
src/@ui/TableView/TableView.stories.js
NewSpring/Apollos
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import FlexedView from '@ui/FlexedView'; import Icon from '@ui/Icon'; import { Switch } from '@ui/inputs'; import TableView, { Cell, CellText, Divider } from './'; storiesOf('TableView', module) .add('default', () => ( <FlexedView> ...
src/routes/Expense/components/sections/Notebook.js
formulaslug/expense
import React from 'react' import './sections.scss' export const Notebook = (props) => ( <section> I'm a Notebook! This is the main screen, and likely what you'll interact with most often. Here, you'll be able to find: <ul className='todoList'> <li>health, temp, max and current</li> <li>sp...
readable/src/containers/AddPost.js
custertian/readable
import React from 'react' import {connect} from 'react-redux' import {Modal, Form, Input, Select} from 'antd'; import { addNewPost } from '../actions/posts' import {closeNewPostModal} from '../actions/modalvisible' const Option = Select.Option; const FormItem = Form.Item; // 展示组件 const NewPostForm = Form.create()((pro...