Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Georgian Stan GeoPablo

🎯
Focusing
Block or report user

Report or block GeoPablo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FrontEnd.js
const whoAmI = async () => {
/**
* * 1. Create the query
* * 2. Send the query and get the response as object
* * 3. If there was an error then throw it
* * 4. Otherwise return the result
*/
// * 1
const query = "{ whoAmI { id profilePicture email confirmed } }";
@GeoPablo
GeoPablo / index.js
Created Sep 8, 2018
React - Vanilla JS
View index.js
// where the magic happens
function createElement(type, props, text) {
const elem = document.createElement(type);
Object.keys(props).forEach(prop => elem[prop] = props[prop] );
const textNode = document.createTextNode(text);
elem.appendChild(textNode);
return elem
@GeoPablo
GeoPablo / 2waydatabinding.js
Last active Sep 8, 2018
2-Way-DataBinding-JS
View 2waydatabinding.js
"use strict";
let scope = {};
(function twoWayDataBinding() {
let bindingItems = document.querySelectorAll('[tw-binding]');
// loop through all bindable elements
bindingItems.forEach((e) => {
You can’t perform that action at this time.