Skip to content

Instantly share code, notes, and snippets.

View Eugene-Mokrushin's full-sized avatar
😶‍🌫️
nullum dolorum nullum quaestum

Eugene Mokrushin Eugene-Mokrushin

😶‍🌫️
nullum dolorum nullum quaestum
View GitHub Profile
@sikanhe
sikanhe / textarea_autoheight.js
Last active May 16, 2023 04:28
Simple textarea that expand and shrinks depending on the content
import React, { PropTypes } from 'react'
export default class TextareaAutosize extends React.Component {
static propTypes = {
value: PropTypes.string,
className: PropTypes.string,
style: PropTypes.object,
onChange: PropTypes.func
}
componentDidMount() {