Skip to content

Instantly share code, notes, and snippets.

View zgababa's full-sized avatar

Fabien de Maestri zgababa

  • Paris
View GitHub Profile
'use strict';
import React from 'react';
import Radium from 'radium';
import DetailInfo from './DetailInfo.jsx';
import Paddle from './Paddle.jsx';
import Screen from './Screen.jsx';
import ScreenInfo from './ScreenInfo.jsx';
import get from 'lodash.get';
'use strict';
import React, { PropTypes } from 'react';
import Radium from 'radium';
import get from 'lodash.get';
class Screen extends React.Component {
render() {
return (
<div>
'use strict';
import React, { PropTypes } from 'react';
import Radium from 'radium';
import get from 'lodash.get';
const styles = {
info : {
position : 'absolute',
top : '213px',
'use strict';
import React, { PropTypes } from 'react';
import Radium from 'radium';
import get from 'lodash.get';
const styles = {
idPokemon : {
position : 'absolute',
top : '467px',
'use strict';
import React, { PropTypes } from 'react';
import Radium from 'radium';
const styles = {
rightArrow : {
height : '31px',
width : '32px',
backgroundColor : 'red',
'use strict';
import React from 'react';
import Radium from 'radium';
import getPokemon from '../client/getPokemon';
class Pokedex extends React.Component {
constructor() {
super();
this.state = {id : 0};
'use strict';
import React from 'react';
import getPokemon from '../client/getPokemon';
class Pokedex extends React.Component {
constructor() {
super();
this.state = {id : 0};
this.arrowRight = this.arrowRight.bind(this);
'use strict';
import request from 'superagent';
const path = '/graphql';
const queryParam = '?graphqlQuery=';
function getQuery(idPokemon) {
return `
{
'use strict';
import React from 'react';
class Pokedex extends React.Component {
constructor() {
super();
this.state = {id : 0};
this.arrowRight = this.arrowRight.bind(this);
this.arrowLeft = this.arrowLeft.bind(this);
<html>
<head>
<meta charset="utf8">
<title>PokeReact !</title>
</head>
<body>
<div id="app"/>
<script src="/bundle.js"></script>
</body>
</html>