installing io.js is now really easy thanks to the io.js and nvm team. They provides prebuilt binaries for arm.
io.js require packages that are not available on the standard (Wheezy) need to change to Jessie. Update your package url
import React, { Component } from 'react'; | |
import styled from 'styled-components'; | |
const Figure = styled.figure` | |
height: 0; | |
margin: 0; | |
background-color: #efefef; | |
position: relative; | |
padding-bottom: ${props => props.ratio}%; | |
`; |
import React from 'react/addons'; | |
import ReactMixin from 'react-mixin'; | |
import ReactScriptLoaderMixin from 'react-script-loader'; | |
export default class LoginForm extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
user: '', | |
password: '', |
import { Component } from "react"; | |
export var Enhance = ComposedComponent => class extends Component { | |
static displayName = "Enhanced" | |
constructor() { | |
super(); | |
this.state = { data: null }; | |
} | |
componentDidMount() { |
import React from 'react'; | |
import MapBox from './Map.jsx'; | |
var Component = React.createClass({ | |
getInitialState: function() { | |
return { | |
data: { | |
x: 0, | |
y: 0 | |
} |
Function.prototype.bind = function(thisObj) { | |
var that = this, args = Array.prototype.slice.call(arguments, 1); | |
return function() { | |
var xArgs = Array.prototype.slice.call(arguments); | |
return that.apply(thisObj, args.concat(xArgs)); | |
}; | |
}; | |
function fn() { | |
return this; |
var userChoice = prompt("Do you choose rock, paper or scissors?"); | |
var computerChoice = Math.random(); | |
console.log(computerChoice); | |
if(computerChoice <= 1/3){ | |
computerChoice = "rock"; | |
} else if(computerChoice <= 2/3){ | |
computerChoice = "paper"; | |
} else if(computerChoice <= 1){ | |
computerChoice = "scissors"; | |
} |
show(status, slotId, carStatusTypeInfo) { | |
var typeIdForCar = ''; | |
if (typeof status === 'undefined') { | |
var types = ['ACTIVE', 'DISABLED', /* ... */]; | |
typeIdForCar = types.reduce(function(value, type){ | |
return value || this.getTypeIdForCar(carStatusTypeInfo, type); | |
}, ''); | |
} else { | |
typeIdForCar = this.getTypeIdForCar(carStatusTypeInfo, status) | |
} |
import React from 'react' | |
import { IndexRoute, Route } from 'react-router' | |
import RootComponent from './containers/RootComponent' | |
import BaseLayout from './components/BaseLayout' | |
import AuthenticatedLayout from './components/AuthenticatedLayout' | |
import Auth from './containers/Auth' | |
import Dashboard from './containers/Dashboard' | |
import Inbox from './containers/Inbox' | |
import Schedule from './containers/Schedule' | |
import NotFound from './components/NotFound' |
import React from 'react' | |
import { IndexRoute, Route } from 'react-router' | |
import RootComponent from './containers/RootComponent' | |
import BaseLayout from './components/BaseLayout' | |
import AuthenticatedLayout from './components/AuthenticatedLayout' | |
import Auth from './containers/Auth' | |
import Dashboard from './containers/Dashboard' | |
import Inbox from './containers/Inbox' | |
import Schedule from './containers/Schedule' |