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
{ | |
"key": "test", | |
"success": true, | |
"numnum": 8763 | |
} |
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
// ==UserScript== | |
// @name Rick Roll Detector | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Detect Rick Roll on Reddit | |
// @author /u/illuminist_ova | |
// @match https://www.reddit.com/* | |
// @grant none | |
// ==/UserScript== |
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 Humanize from "humanize-plus"; | |
function ConnectedInput(props) { | |
const [editedValue, setValue] = React.useState('') | |
const [isEditing, setEditing] = React.useState(false) | |
const handleChange = (e) => { | |
setValue(e.target.value) | |
props.inputOnChange(e) |