data = { cities: [ { city: "", addressLines: [ { addressLine: "" } ] } ] }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Grid, GridColumn as Column } from '@progress/kendo-react-grid'; | |
import { gridData } from '../data/appData'; | |
export const GridContainer = () => ( | |
<div> | |
<Grid style={{ height: '300px' }} data={gridData}> | |
<Column field="ProductID" title="ID" width="40px" /> | |
<Column field="ProductName" title="Name" width="160px" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const panelBarData = { | |
'teammates': [ | |
{ | |
firstName: 'Andrew', | |
lastName: 'Fuller', | |
position: 'Team Lead' | |
}, { | |
firstName: 'Nancy', | |
lastName: 'Leaver', | |
position: 'Sales Associate' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import 'hammerjs'; | |
import { | |
Chart, | |
ChartSeries, | |
ChartSeriesItem, | |
ChartCategoryAxis, | |
ChartCategoryAxisItem, | |
ChartLegend, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import 'hammerjs'; | |
import { | |
Chart, | |
ChartLegend, | |
ChartSeries, | |
ChartSeriesItem, | |
ChartSeriesLabels | |
} from '@progress/kendo-react-charts'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import 'hammerjs'; | |
import { | |
Chart, | |
ChartLegend, | |
ChartSeries, | |
ChartSeriesItem, | |
ChartSeriesLabels | |
} from '@progress/kendo-react-charts'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 { | |
color:rgb(63, 81, 181); | |
font-weight: bold; | |
} | |
.buttons-right>button { | |
float: right; | |
margin: 5px; | |
} | |
.app-container { | |
padding: 25px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './App.css'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="bootstrap-wrapper"> | |
<div className="app-container container"> | |
<div className="row"> | |
<div className="col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let state = { | |
name: 'Eric', | |
role: 'employee' | |
} | |
console.log(state); | |
// does not mutate state, creates copy with change to role | |
let newState = | |
Object.assign({}, state, {role: 'manager'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getHighCard = function (cards) { | |
return cards.reduce((item, next) => item.numValue > next.numValue ? item : next); | |
}; |