tslint-config-prettier helps
List of tslint dev-dependencies:
"tslint": "^5.12.1",
"tslint-config-airbnb": "^5.11.1",
"tslint-plugin-prettier": "^2.0.1",
"tslint-react": "^3.6.0",
tslint-config-prettier helps
List of tslint dev-dependencies:
"tslint": "^5.12.1",
"tslint-config-airbnb": "^5.11.1",
"tslint-plugin-prettier": "^2.0.1",
"tslint-react": "^3.6.0",
Forked from MAW-M.L's Pen Draggable range slider.
Forked from Secret Sam's Pen Draggable range slider.
A Pen by Andrey Shubich on CodePen.
| import React from 'react'; | |
| import { render } from 'react-dom'; | |
| import './style.css'; | |
| const cats = [ | |
| "http://www.pawculture.com/uploads/small-cat-breeds-card.jpg", | |
| "http://www.pawculture.com/uploads/cats-small-places-card.jpg", | |
| "http://facts.net/wp-content/uploads/2015/07/Cat-Facts.jpg" | |
| ] |
| function fiboLoop(num) { | |
| let a = 1, | |
| b = 0, | |
| temp; | |
| while (num >= 1) { | |
| temp = a; | |
| a += b; | |
| b = temp; | |
| num--; |
| import React, { Component } from 'react'; | |
| import { render } from 'react-dom'; | |
| import './style.css'; | |
| class App extends Component { | |
| constructor() { | |
| super(); | |
| this.state = { | |
| count: 0, | |
| }; |
| function fizzBuzz(x) { | |
| // lcm(3, 5) = 15 | |
| if (x % 15 === 0) return "FizzBuzz" | |
| if (x % 3 === 0) return "Fizz"; | |
| if (x % 5 === 0) return "Buzz"; | |
| return x; | |
| } | |
| // usage | |
| for (let i = 1; i <= 100; i++) { |