Skip to content

Instantly share code, notes, and snippets.

View sematgt's full-sized avatar
🏘️
wip

Semyon Bliznyuk sematgt

🏘️
wip
View GitHub Profile
@sematgt
sematgt / iterator.js
Created May 8, 2020 15:45
JS iterators tutorial source code simonbliznyuk.com
class Group {
constructor() {
this.elements = [];
}
add(element) {
if (!this.has(element)) {
this.elements.push(element);
}
}
@sematgt
sematgt / ComboBox.js
Created March 30, 2020 10:12
Test syntax highlighting
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
export default function ComboBox(props) {
return (
<Autocomplete
autoHighlight={props.autoHighlight}
onChange={props.handleChange}
clearText={props.clearText}