Skip to content

Instantly share code, notes, and snippets.

View kamleshchandnani's full-sized avatar

Kamlesh Chandnani kamleshchandnani

View GitHub Profile
@kamleshchandnani
kamleshchandnani / reactfoo2018-react-design-patterns.md
Last active November 30, 2017 17:55
Design patterns/techniques that can be used while developing with React

Design patterns/techniques that can be used while developing with React


Design patterns help us to make our applications more flexible, perform better, and easier to maintain, giving our workflow a huge boost when it comes to speed without reducing quality.

@kamleshchandnani
kamleshchandnani / rollup.config.js
Created November 10, 2017 12:33 — forked from transitive-bullshit/rollup.config.js
example rollup config for react module transpilation
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import postcss from 'rollup-plugin-postcss'
import resolve from 'rollup-plugin-node-resolve'
import pkg from './package.json'
export default {
input: 'src/index.js',
output: [
@kamleshchandnani
kamleshchandnani / reactiveconf-2017-progressive-loading-cfp.md
Last active June 29, 2020 08:22
Progressive loading for modern web applications via code splitting!
@kamleshchandnani
kamleshchandnani / ContextMenu.js
Created February 6, 2017 12:39
react-native context-menu/stackoverflow-menu
import React, { Component, PropTypes } from 'react'
import { View, UIManager, findNodeHandle, TouchableOpacity } from 'react-native'
import { Icon } from 'native-base';
const ICON_SIZE = 24
export default class ContextMenu extends Component {
static propTypes = {
// array of strings, will be list items of Menu
actions: PropTypes.arrayOf(PropTypes.string).isRequired,
onPress: PropTypes.func.isRequired