Skip to content

Instantly share code, notes, and snippets.

View benoitkopp's full-sized avatar
🏠
Working from home

Benoît KOPP benoitkopp

🏠
Working from home
  • Elsass
View GitHub Profile
static public function __callStatic($method, $args) {
return '';
}
@hartzis
hartzis / ImageUploadComponent.jsx
Last active April 3, 2023 18:09
React Image Upload with Preview
// https://codepen.io/hartzis/pen/VvNGZP
class ImageUpload extends Component {
constructor(props) {
super(props);
this.state = {
file: '',
imagePreviewUrl: ''
};
this._handleImageChange = this._handleImageChange.bind(this);
this._handleSubmit = this._handleSubmit.bind(this);
echo 'lala';