Skip to content

Instantly share code, notes, and snippets.

View c0d0g3n's full-sized avatar

Bruno c0d0g3n

View GitHub Profile
@c0d0g3n
c0d0g3n / EditableContainer.jsx
Last active February 11, 2021 11:13
React: double click to edit, blur to save and exit.
import React from 'react'
import settings from '../settings.js'
import Field from '../styles/FieldStyle.jsx'
export default class EditableContainer extends React.Component {
constructor (props) {
super(props)
// init counter
this.count = 0
@c0d0g3n
c0d0g3n / snippets.cson
Created August 23, 2017 14:07
my atom snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#