File tree Expand file tree Collapse file tree 2 files changed +81
-0
lines changed
Expand file tree Collapse file tree 2 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : <Activity>
3+ canary : true
4+ ---
5+
6+ <Wip >
7+
8+ ** This API is experimental and is not available in a stable version of React yet.**
9+
10+ You can try it by upgrading React packages to the most recent experimental version:
11+
12+ - ` react@experimental `
13+ - ` react-dom@experimental `
14+ - ` eslint-plugin-react-hooks@experimental `
15+
16+ Experimental versions of React may contain bugs. Don't use them in production.
17+
18+ </Wip >
19+
20+ <Intro >
21+
22+ ` <Activity> ` lets you hide and show part of the UI.
23+
24+
25+ ``` js
26+ import {unstableActivty as Activiy } from ' react' ;
27+
28+ < Activity mode= {tab === currentTab ? " visible" : " hidden" }>
29+ < Tab tab= {tab} / >
30+ < / Activity>
31+ ```
32+
33+ </Intro >
34+
35+ <InlineToc />
36+
37+ ---
38+
39+ ## Reference {/* reference* /}
40+
41+ ### ` <Activity> ` {/* activity* /}
42+
43+ Wrap elements in ` <Activity> ` to...
44+
45+ - ` hidden ` : TODO
46+ - ` visible ` : TODO
47+
48+
49+ <DeepDive >
50+
51+ #### How does ` <Acivity> ` work? {/* how-does-activity-work* /}
52+
53+ Under the hood...
54+
55+ </DeepDive >
56+
57+ #### Props {/* props* /}
58+
59+ * ** optional** ` mode ` :
60+
61+ #### Caveats {/* caveats* /}
62+
63+ - TODO
64+
65+ ---
66+
67+
68+ ## Usage {/* usage* /}
69+
70+ ### TODO {/* todo* /}
71+
72+ ---
73+
74+ ## Troubleshooting {/* troubleshooting* /}
75+
76+ ### TODO {/* troubleshooting-todo* /}
Original file line number Diff line number Diff line change 104104 "title" : " <Suspense>" ,
105105 "path" : " /reference/react/Suspense"
106106 },
107+ {
108+ "title" : " <Activity>" ,
109+ "path" : " /reference/react/Activity" ,
110+ "version" : " canary"
111+ },
107112 {
108113 "title" : " <ViewTransition>" ,
109114 "path" : " /reference/react/ViewTransition" ,
You can’t perform that action at this time.
0 commit comments