files dict |
|---|
{
"content": "Title: renderToStaticMarkup – React\n\nURL Source: https://react.dev/reference/react-dom/server/renderToStaticMarkup\n\nMarkdown Content:\nrenderToStaticMarkup – React\n===============\n\nrenderToStaticMarkup[](https://react.dev/reference/react-dom/server/renderToStaticMarkup#undefined \"Link for this h... |
{
"content": "Title: renderToStaticNodeStream – React\n\nURL Source: https://react.dev/reference/react-dom/server/renderToStaticNodeStream\n\nMarkdown Content:\nrenderToStaticNodeStream – React\n===============\n\nrenderToStaticNodeStream[](https://react.dev/reference/react-dom/server/renderToStaticNodeStream#undefin... |
{
"content": "Title: renderToString – React\n\nURL Source: https://react.dev/reference/react-dom/server/renderToString\n\nMarkdown Content:\n### Pitfall\n\n`renderToString` does not support streaming or waiting for data. [See the alternatives.](https://react.dev/reference/react-dom/server/renderToString#alternatives)... |
{
"content": "Title: Rendering Lists – React\n\nURL Source: https://react.dev/learn/rendering-lists\n\nMarkdown Content:\nYou will often want to display multiple similar components from a collection of data. You can use the [JavaScript array methods](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_... |
{
"content": "Title: Responding to Events – React\n\nURL Source: https://react.dev/learn/responding-to-events\n\nMarkdown Content:\nReact lets you add _event handlers_ to your JSX. Event handlers are your own functions that will be triggered in response to interactions like clicking, hovering, focusing form inputs, a... |
{
"content": "Title: Reusing Logic with Custom Hooks – React\n\nURL Source: https://react.dev/learn/reusing-logic-with-custom-hooks\n\nMarkdown Content:\nReact comes with several built-in Hooks like `useState`, `useContext`, and `useEffect`. Sometimes, you’ll wish that there was a Hook for some more specific purpose:... |
{
"content": "Title: Rules of Hooks – React\n\nURL Source: https://react.dev/reference/rules/rules-of-hooks\n\nMarkdown Content:\nRules of Hooks – React\n===============\n\nRules of Hooks[](https://react.dev/reference/rules/rules-of-hooks#undefined \"Link for this heading\")\n=========================================... |
{
"content": "Title: Rules of React – React\n\nURL Source: https://react.dev/reference/rules\n\nMarkdown Content:\nJust as different programming languages have their own ways of expressing concepts, React has its own idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-q... |
{
"content": "Title: Scaling Up with Reducer and Context – React\n\nURL Source: https://react.dev/learn/scaling-up-with-reducer-and-context\n\nMarkdown Content:\nReducers let you consolidate a component’s state update logic. Context lets you pass information deep down to other components. You can combine reducers and... |
{
"content": "Title: <script> – React\n\nURL Source: https://react.dev/reference/react-dom/components/script\n\nMarkdown Content:\n### Canary\n\nThe [built-in browser `<script>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) lets you add a script to your document.\n\n```\n<script> alert(... |
{
"content": "Title: <select> – React\n\nURL Source: https://react.dev/reference/react-dom/components/select\n\nMarkdown Content:\nThe [built-in browser `<select>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select) lets you render a select box with options.\n\n```\n<select><option value=\"so... |
{
"content": "Title: Separating Events from Effects – React\n\nURL Source: https://react.dev/learn/separating-events-from-effects\n\nMarkdown Content:\nEvent handlers only re-run when you perform the same interaction again. Unlike event handlers, Effects re-synchronize if some value they read, like a prop or a state ... |
{
"content": "Title: Server Actions – React\n\nURL Source: https://react.dev/reference/rsc/server-actions\n\nMarkdown Content:\nServer Actions allow Client Components to call async functions executed on the server.\n\n* [Creating a Server Action from a Server Component](https://react.dev/reference/rsc/server-action... |
{
"content": "Title: React Server Components – React\n\nURL Source: https://react.dev/reference/rsc/server-components\n\nMarkdown Content:\nServer Components are a new type of Component that renders ahead of time, before bundling, in an environment separate from your client app or SSR server.\n\nThis separate environ... |
{
"content": "Title: Server React DOM APIs – React\n\nURL Source: https://react.dev/reference/react-dom/server\n\nMarkdown Content:\nServer React DOM APIs – React\n===============\n\nServer React DOM APIs[](https://react.dev/reference/react-dom/server#undefined \"Link for this heading\")\n============================... |
{
"content": "Title: Sharing State Between Components – React\n\nURL Source: https://react.dev/learn/sharing-state-between-components\n\nMarkdown Content:\nSometimes, you want the state of two components to always change together. To do it, remove state from both of them, move it to their closest common parent, and t... |
{
"content": "Title: Start a New React Project – React\n\nURL Source: https://react.dev/learn/start-a-new-react-project\n\nMarkdown Content:\nIf you want to build a new app or a new website fully with React, we recommend picking one of the React-powered frameworks popular in the community.\n\nYou can use React withou... |
{
"content": "Title: startTransition – React\n\nURL Source: https://react.dev/reference/react/startTransition\n\nMarkdown Content:\nstartTransition – React\n===============\n\nstartTransition[](https://react.dev/reference/react/startTransition#undefined \"Link for this heading\")\n====================================... |
{
"content": "Title: State: A Component's Memory – React\n\nURL Source: https://react.dev/learn/state-a-components-memory\n\nMarkdown Content:\nState: A Component's Memory – React\n===============\n\nState: A Component's Memory[](https://react.dev/learn/state-a-components-memory#undefined \"Link for this heading\")\n... |
{
"content": "Title: State as a Snapshot – React\n\nURL Source: https://react.dev/learn/state-as-a-snapshot\n\nMarkdown Content:\nState variables might look like regular JavaScript variables that you can read and write to. However, state behaves more like a snapshot. Setting it does not change the state variable you ... |
{
"content": "Title: <style> – React\n\nURL Source: https://react.dev/reference/react-dom/components/style\n\nMarkdown Content:\n### Canary\n\nThe [built-in browser `<style>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style) lets you add inline CSS stylesheets to your document.\n\n```\n<styl... |
{
"content": "Title: Synchronizing with Effects – React\n\nURL Source: https://react.dev/learn/synchronizing-with-effects\n\nMarkdown Content:\nSome components need to synchronize with external systems. For example, you might want to control a non-React component based on the React state, set up a server connection, ... |
{
"content": "Title: <textarea> – React\n\nURL Source: https://react.dev/reference/react-dom/components/textarea\n\nMarkdown Content:\nThe [built-in browser `<textarea>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) lets you render a multiline text input.\n\n* [Reference](https://re... |
{
"content": "Title: Thinking in React – React\n\nURL Source: https://react.dev/learn/thinking-in-react\n\nMarkdown Content:\nReact can change how you think about the designs you look at and the apps you build. When you build a user interface with React, you will first break it apart into pieces called _components_. ... |
{
"content": "Title: <title> – React\n\nURL Source: https://react.dev/reference/react-dom/components/title\n\nMarkdown Content:\nReact\nv18.3.1\nSearch\nCtrl\nK\nLearn\nReference\nCommunity\nBlog\nreact@18.3.1\nOverview\nHooks\nComponents\nAPIs\nreact-dom@18.3.1\nHooks\nComponents\nCommon (e.g. <div>)\n<form> \n<inpu... |
{
"content": "Title: Tutorial: Tic-Tac-Toe – React\n\nURL Source: https://react.dev/learn/tutorial-tic-tac-toe\n\nMarkdown Content:\nYou will build a small tic-tac-toe game during this tutorial. This tutorial does not assume any existing React knowledge. The techniques you’ll learn in the tutorial are fundamental to ... |
{
"content": "Title: Using TypeScript – React\n\nURL Source: https://react.dev/learn/typescript\n\nMarkdown Content:\nTypeScript is a popular way to add type definitions to JavaScript codebases. Out of the box, TypeScript [supports JSX](https://react.dev/learn/writing-markup-with-jsx) and you can get full React Web s... |
{
"content": "Title: Understanding Your UI as a Tree – React\n\nURL Source: https://react.dev/learn/understanding-your-ui-as-a-tree\n\nMarkdown Content:\nYour React app is taking shape with many components being nested within each other. How does React keep track of your app’s component structure?\n\nReact, and many ... |
{
"content": "Title: unmountComponentAtNode – React\n\nURL Source: https://react.dev/reference/react-dom/unmountComponentAtNode\n\nMarkdown Content:\nunmountComponentAtNode – React\n===============\n\nunmountComponentAtNode[](https://react.dev/reference/react-dom/unmountComponentAtNode#undefined \"Link for this headi... |
{
"content": "Title: Updating Arrays in State – React\n\nURL Source: https://react.dev/learn/updating-arrays-in-state\n\nMarkdown Content:\nArrays are mutable in JavaScript, but you should treat them as immutable when you store them in state. Just like with objects, when you want to update an array stored in state, y... |
{
"content": "Title: Updating Objects in State – React\n\nURL Source: https://react.dev/learn/updating-objects-in-state\n\nMarkdown Content:\nState can hold any kind of JavaScript value, including objects. But you shouldn’t change objects that you hold in the React state directly. Instead, when you want to update an ... |
{
"content": "Title: 'use client' directive – React\n\nURL Source: https://react.dev/reference/rsc/use-client\n\nMarkdown Content:\n### Canary\n\n`'use client'` lets you mark what code runs on the client.\n\n* [Reference](https://react.dev/reference/rsc/use-client#reference)\n * [`'use client'`](https://react.... |
{
"content": "Title: 'use server' directive – React\n\nURL Source: https://react.dev/reference/rsc/use-server\n\nMarkdown Content:\n### Canary\n\n`'use server'` marks server-side functions that can be called from client-side code.\n\n* [Reference](https://react.dev/reference/rsc/use-server#reference)\n * [`'us... |
{
"content": "Title: use – React\n\nURL Source: https://react.dev/reference/react/use\n\nMarkdown Content:\n### Canary\n\n`use` is a React API that lets you read the value of a resource like a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) or [context](https://reac... |
{
"content": "Title: useActionState – React\n\nURL Source: https://react.dev/reference/react/useActionState\n\nMarkdown Content:\n### Canary\n\nThe `useActionState` Hook is currently only available in React’s Canary and experimental channels. Learn more about [release channels here](https://react.dev/community/versio... |
{
"content": "Title: useCallback – React\n\nURL Source: https://react.dev/reference/react/useCallback\n\nMarkdown Content:\n`useCallback` is a React Hook that lets you cache a function definition between re-renders.\n\n```\nconst cachedFn = useCallback(fn, dependencies)\n```\n\n* [Reference](https://react.dev/refer... |
{
"content": "Title: useContext – React\n\nURL Source: https://react.dev/reference/react/useContext\n\nMarkdown Content:\n`useContext` is a React Hook that lets you read and subscribe to [context](https://react.dev/learn/passing-data-deeply-with-context) from your component.\n\n```\nconst value = useContext(SomeConte... |
{
"content": "Title: useDebugValue – React\n\nURL Source: https://react.dev/reference/react/useDebugValue\n\nMarkdown Content:\nuseDebugValue – React\n===============\n\n[Hooks](https://react.dev/reference/react/hooks)\n\nuseDebugValue[](https://react.dev/reference/react/useDebugValue#undefined \"Link for this headin... |
{
"content": "Title: useDeferredValue – React\n\nURL Source: https://react.dev/reference/react/useDeferredValue\n\nMarkdown Content:\n`useDeferredValue` is a React Hook that lets you defer updating a part of the UI.\n\n```\nconst deferredValue = useDeferredValue(value)\n```\n\n* [Reference](https://react.dev/refere... |
{
"content": "Title: useEffect – React\n\nURL Source: https://react.dev/reference/react/useEffect\n\nMarkdown Content:\n`useEffect` is a React Hook that lets you [synchronize a component with an external system.](https://react.dev/learn/synchronizing-with-effects)\n\n```\nuseEffect(setup, dependencies?)\n```\n\n* [... |
{
"content": "Title: useFormStatus – React\n\nURL Source: https://react.dev/reference/react-dom/hooks/useFormStatus\n\nMarkdown Content:\nuseFormStatus - This feature is available in the latest Canary[](https://react.dev/reference/react-dom/hooks/useFormStatus#undefined \"Link for this heading\")\n-------------------... |
{
"content": "Title: useId – React\n\nURL Source: https://react.dev/reference/react/useId\n\nMarkdown Content:\n`useId` is a React Hook for generating unique IDs that can be passed to accessibility attributes.\n\n* [Reference](https://react.dev/reference/react/useId#reference)\n * [`useId()`](https://react.dev... |
{
"content": "Title: useImperativeHandle – React\n\nURL Source: https://react.dev/reference/react/useImperativeHandle\n\nMarkdown Content:\n`useImperativeHandle` is a React Hook that lets you customize the handle exposed as a [ref.](https://react.dev/learn/manipulating-the-dom-with-refs)\n\n```\nuseImperativeHandle(r... |
{
"content": "Title: useInsertionEffect – React\n\nURL Source: https://react.dev/reference/react/useInsertionEffect\n\nMarkdown Content:\n### Pitfall\n\n`useInsertionEffect` is for CSS-in-JS library authors. Unless you are working on a CSS-in-JS library and need a place to inject the styles, you probably want [`useEf... |
{
"content": "Title: useLayoutEffect – React\n\nURL Source: https://react.dev/reference/react/useLayoutEffect\n\nMarkdown Content:\n### Pitfall\n\n`useLayoutEffect` can hurt performance. Prefer [`useEffect`](https://react.dev/reference/react/useEffect) when possible.\n\n`useLayoutEffect` is a version of [`useEffect`]... |
{
"content": "Title: useMemo – React\n\nURL Source: https://react.dev/reference/react/useMemo\n\nMarkdown Content:\n`useMemo` is a React Hook that lets you cache the result of a calculation between re-renders.\n\n```\nconst cachedValue = useMemo(calculateValue, dependencies)\n```\n\n* [Reference](https://react.dev/... |
{
"content": "Title: useOptimistic – React\n\nURL Source: https://react.dev/reference/react/useOptimistic\n\nMarkdown Content:\nuseOptimistic – React\n===============\n\nuseOptimistic [](https://react.dev/reference/react/useOptimistic#undefined \"Link for this heading\")\n=============================================... |
{
"content": "Title: useReducer – React\n\nURL Source: https://react.dev/reference/react/useReducer\n\nMarkdown Content:\n`useReducer` is a React Hook that lets you add a [reducer](https://react.dev/learn/extracting-state-logic-into-a-reducer) to your component.\n\n```\nconst [state, dispatch] = useReducer(reducer, i... |
{
"content": "Title: useRef – React\n\nURL Source: https://react.dev/reference/react/useRef\n\nMarkdown Content:\n`useRef` is a React Hook that lets you reference a value that’s not needed for rendering.\n\n```\nconst ref = useRef(initialValue)\n```\n\n* [Reference](https://react.dev/reference/react/useRef#referenc... |
{
"content": "Title: useState – React\n\nURL Source: https://react.dev/reference/react/useState\n\nMarkdown Content:\n`useState` is a React Hook that lets you add a [state variable](https://react.dev/learn/state-a-components-memory) to your component.\n\n```\nconst [state, setState] = useState(initialState)\n```\n\n*... |
{
"content": "Title: useSyncExternalStore – React\n\nURL Source: https://react.dev/reference/react/useSyncExternalStore\n\nMarkdown Content:\n`useSyncExternalStore` is a React Hook that lets you subscribe to an external store.\n\n```\nconst snapshot = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot?)\n... |
{
"content": "Title: useTransition – React\n\nURL Source: https://react.dev/reference/react/useTransition\n\nMarkdown Content:\n`useTransition` is a React Hook that lets you update the state without blocking the UI.\n\n```\nconst [isPending, startTransition] = useTransition()\n```\n\n* [Reference](https://react.dev... |
{
"content": "Title: Writing Markup with JSX – React\n\nURL Source: https://react.dev/learn/writing-markup-with-jsx\n\nMarkdown Content:\n_JSX_ is a syntax extension for JavaScript that lets you write HTML-like markup inside a JavaScript file. Although there are other ways to write components, most React developers p... |
{
"content": "Title: You Might Not Need an Effect – React\n\nURL Source: https://react.dev/learn/you-might-not-need-an-effect\n\nMarkdown Content:\nEffects are an escape hatch from the React paradigm. They let you “step outside” of React and synchronize your components with some external system like a non-React widge... |
{
"content": "Title: Your First Component – React\n\nURL Source: https://react.dev/learn/your-first-component\n\nMarkdown Content:\n_Components_ are one of the core concepts of React. They are the foundation upon which you build user interfaces (UI), which makes them the perfect place to start your React journey!\n\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.