Skip to content

Instantly share code, notes, and snippets.

@b1gun0v
b1gun0v / index.js
Created March 26, 2020 16:51 — forked from alexandrebodin/index.js
Uploading images to strapi with react and axios
import React, { Component } from 'react';
import axios from 'axios';
import './App.css';
class App extends Component {
constructor() {
super();
this.state = {
images: [],
@b1gun0v
b1gun0v / Composition.js
Created March 21, 2020 18:27 — forked from vladilenm/Composition.js
Inheritance vs Composition in JavaScript
function createProgrammer(name) {
const programmer = {name}
return {
...programmer,
...canCode(programmer)
}
}
function canCode({ name }) {
return {