This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Animations</title> | |
</head> |
This file contains 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
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<ActionButton onChange={(accepted) => accepted ? console.log('The user accepted') : console.log('The use declined')}> | |
Пробвай ме | |
</ActionButton> | |
</div> | |
); | |
} |
This file contains 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 from 'react'; | |
import * as d3 from 'd3'; | |
import './styles.css'; | |
class BarChart extends React.Component { | |
render() { | |
const { data, width, height } = this.props; | |
return ( | |
<React.Fragment> |
This file contains 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
<div style="display:flex;flex-direction:column;"> | |
<button [click-once]="testClick">Function as parameter</button> | |
<!-- [undefined, undefined, undefined] --> | |
<button [click-once]="testClick2('baba', 'dqdo')">Arrow function closure</button> | |
<!-- ["baba", "dqdo", "4i4o"] --> | |
<button [click-once]="testClick3('baba', 'dqdo')">Decorator</button> | |
<!-- ["baba", "dqdo", undefined] --> | |
This file contains 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
// How will this work | |
// 1. Stream read the json | |
// https://www.npmjs.com/package/stream-json | |
// 2. Extract valuable information | |
// 3. Rewrite/Rewire request urls | |
// 4. Put Request/Response pairs in the cache | |
// https://developer.mozilla.org/en-US/docs/Web/API/Cache/put |