Skip to content

Instantly share code, notes, and snippets.

import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { Form, Button, Label, Input } from 'semantic-ui-react';
const CustomInput = ({ input, meta: { error, touched }, label, ...custom }) => (
<Form.Field error={error && touched}>
<label htmlFor={custom.name} >{label}</label>
<Input id={custom.name} {...input} {...custom} />
{error && touched && <Label basic color="red" pointing>{error}</Label>}
</Form.Field>
@mbury
mbury / tmux_install.sh
Last active November 21, 2016 12:30 — forked from mirskiy/tmux_install.sh
Install tmux 2.2 on Ubuntu 14.04 from source
sudo apt-get update
sudo apt-get install -y libevent-dev libncurses-dev make
wget https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
tar xvzf tmux-2.3.tar.gz
cd tmux-2.3/
./configure && make
sudo make install