(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// Website you intended to retrieve for users. | |
const upstream = 'api.openai.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = upstream | |
// Countries and regions where you wish to suspend your service. |
import React, { useEffect } from "react"; | |
export const AppStateContext = React.createContext(null); | |
export default function AppStateProvider({ children }) { | |
const [message, SetMessage] = React.useState(); | |
const [error, SetError] = React.useState(); | |
const state = { | |
SetMessage: SetMessage, |
import React, { useState, useContext } from 'react'; | |
const AppContext = React.createContext({}); | |
const App = () => { | |
const [lang, setLang] = useState('en'); | |
const [color, setColor] = useState('blue'); | |
const store = { | |
lang: { get: lang, set: setLang }, |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0-modified | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.