Skip to content

Instantly share code, notes, and snippets.

View princiya's full-sized avatar
🎯
Focusing

Princiya Marina Sequeira princiya

🎯
Focusing
View GitHub Profile
@princiya
princiya / config-webpack.development.js
Last active September 5, 2018 08:59
HTMLWebpackPlugin
const webpackConfig = require('./config-webpack.default');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { development } = require('./variables');
const { replacePlugin } = require('./util');
const htmlPlugin = new HtmlWebpackPlugin({
template: 'src/index.html',
apiUrl: development.API_URL,
title: development.title
});
@princiya
princiya / client.js
Created January 23, 2018 10:47
Client API
// es6
const client = {
init(adapter) {
this.adapter = adapter;
},
async getSpaces() {
const spaces = await this.adapter.makeRequest({
method: 'GET',
@princiya
princiya / App.js
Created October 21, 2017 07:50
Reusable React component to render the output of an observable
import React, { Component } from 'react';
import Rx from 'rxjs/Rx';
import './App.css';
import Observable from './components/Observable';
class App extends Component {
render() {
return (
<div className="App">
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import { debounce } from 'lodash';
import Logo from '../components/Logo';
import EntityAvatar from './EntityAvatar';
import LanguageSwitcher from '../containers/LanguageSwitcher';
import UserDropDown from '../modules/user/components/UserDropDown';