Skip to content

Instantly share code, notes, and snippets.

View pure-almaz's full-sized avatar

Philip Oyedoyin pure-almaz

View GitHub Profile
@pure-almaz
pure-almaz / StateContext.js
Created November 22, 2024 21:30 — forked from adrianhajdin/StateContext.js
Build and Deploy a Modern Full Stack ECommerce Application with Stripe
import React, { createContext, useContext, useState, useEffect } from 'react';
import { toast } from 'react-hot-toast';
const Context = createContext();
export const StateContext = ({ children }) => {
const getLocalStorage = (name) => {
if (typeof window !== 'undefined') {
const storage = localStorage.getItem(name);
@pure-almaz
pure-almaz / App.css
Created November 22, 2024 21:16 — forked from adrianhajdin/App.css
Develop a React Cryptocurrency App and Master Redux Toolkit in One Video
:root{
--text-primary:#000;
--bgPrimary:#fff;
--bgSecondary: #F9F9F9;
--pink: #0071bd;
--light-blue: #e6f7ff;
--border: #d9d9d9;
}