Skip to content

Commit fb559d2

Browse files
committed
Add web components questions
1 parent 6bd87a6 commit fb559d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
|305| [What is the stable release for hooks support?](#what-is-the-stable-release-for-hooks-support)|
322322
|306| [Why do we use square brackets in useState?](#why-do-we-use-square-brackets-in-usestate?)|
323323
|307| [What are the sources used for introducing hooks?](#what-are-the-sources-used-for-introducing-hooks)|
324+
|308| [How do you access imperative API of web components?](#how-do-you-access-imperative-api-of-web-components)|
324325

325326
## Core React
326327

@@ -5088,4 +5089,6 @@
50885089
2. Community experiments with render prop APIs such as Reactions Component
50895090
3. State variables and state cells in DisplayScript.
50905091
4. Subscriptions in Rx.
5091-
5. Reducer components in ReasonReact.
5092+
5. Reducer components in ReasonReact.
5093+
308. ### How do you access imperative API of web components?
5094+
Web Components often expose an imperative API to implement its functions. You will need to use a **ref** to interact with the DOM node directly if you want to access imperative API of a web component. But if you are using third-party Web Components, the best solution is to write a React component that behaves as a **wrapper** for your Web Component.

0 commit comments

Comments
 (0)