This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function curry(fn) { | |
| const arity = fn.length; | |
| function fun(n, args) { | |
| return function(a) { | |
| if(n <= 1) { | |
| return fn(...args, a); | |
| } | |
| return fun(n - 1, [...args, a]); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react' | |
| import { tns } from 'tiny-slider/src/tiny-slider.module' | |
| export default class Carousel extends Component { | |
| constructor(props) { | |
| super(props) | |
| this.sliderContainer = React.createRef() | |
| } | |
| componentDidMount() { |