Skip to content

Instantly share code, notes, and snippets.

View jstewart8053's full-sized avatar
💙

Jennifer Stewart jstewart8053

💙
View GitHub Profile
@mojaray2k
mojaray2k / react-registration-form-using-useState.md
Last active February 3, 2023 09:06
Sample React Registration form Using UseState Hook

React Registraton Form using useState Hook

import React, { Fragment, useState } from "react";
import { Link } from "react-router-dom";
import axios from "axios";

const Register = () => {
  const [formData, setFormData] = useState({
    name: "",
@robmarshall
robmarshall / useEffect-async-loader.js
Created September 29, 2019 15:55
Component using useEffect and Axios to get async data
import React, { useState, useEffect } from "react";
import axios from "axios";
const fetchDataCall = async ({ api }) => {
let apiReturn = await axios
.get(api)
.then(async function(response) {
return response;
})
.catch(function(error) {
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
items.push(elements[i]);
}
}
@jerblack
jerblack / junk_remover.ps
Last active May 28, 2018 19:16
Removing built-in Windows 10 apps
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *3DViewer* -AllUsers | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *gethelp* | Remove-AppxPackage
Get-AppxPackage *zunemusic* | Remove-AppxPackage
@staltz
staltz / introrx.md
Last active April 20, 2024 14:15
The introduction to Reactive Programming you've been missing