Catalog npm
PACKAGE EXPLORERView in registry

@-ft/watch-target-react

npm

React wrapper for util watchTarget

Versions collected3
Direct dependencies3From release 0.0.9
Last observed20 Oct, 21:49 UTC

README

Current package documentation

watch-target-react - Util watchTarget wrapper for React

React wrapper of util watchTarget

Usage

function Portal({ children }) {
  const { addComponent } = useContext(PortalContext);
  const childrenWatchTarget = useLayoutWatchTarget(children);
  useEffect(
    () => addComponent(toComponent(childrenWatchTarget.watch)),
    [addComponent]
  );
  return null;
}

function toComponent(childrenWatchTarget) {
  return function Component() {
    return <>{useWatchValue(childrenWatchTarget)}</>;
  };
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 3

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.9Registry latest26 Jan 20243
0.0.823 Jan 20243
0.0.726 Sept 20233

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
42ts/-ft-watch-target-react

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:76145a6ef6b6e4ffeb21bd2ef05cb9a13c84c66ceb8294488a3ba90adb706b5b