import React, { useState, useEffect, useContext, useReducer, useCallback, useMemo, useRef, useImperativeHandle, useLayoutEffect, useDebugValue } from 'react'
source: https://reactjs.org/docs/hooks-reference.html
source: https://reactjs.org/docs/hooks-rules.html
import React, { Suspense, lazy } from 'react';
// return a promise, or async/await const FooResource = createResource(id => fetch(`/foo/${id}`)); // inside render... const fooResponse = FooResource.read(id); // suspends if not in cache; renders if in cache return {fooResponse} ;
source: https://github.com/sw-yx/fresh-concurrent-react
import { useDeviceMotion, useDeviceOrientation, useScript useGeoPosition, useNetworkStatus, useMedia, useStylesheet, useWindowScrollPosition, useWindowSize, Img, Script, Video, Audio, Preload, Stylesheet, } from 'the-platform';
source: https://github.com/palmerhq/the-platform
const container = document.getElementById('root'); //today - unstable_createRoot const root = ReactDOM.createRoot(container); root.render();