MCPcopy Index your code
hub / github.com/reactive-python/reactpy / use

Method use

src/py/reactpy/reactpy/testing/common.py:200–211  ·  view source on GitHub ↗
(
        self,
        function: Callable[..., Any],
        stop_propagation: bool = False,
        prevent_default: bool = False,
    )

Source from the content-addressed store, hash-verified

198 self.target = uuid4().hex
199
200 def use(
201 self,
202 function: Callable[..., Any],
203 stop_propagation: bool = False,
204 prevent_default: bool = False,
205 ) -> EventHandler:
206 return EventHandler(
207 to_event_handler_function(function),
208 stop_propagation,
209 prevent_default,
210 self.target,
211 )

Callers 4

RootFunction · 0.80
SomeComponentFunction · 0.80
ParentFunction · 0.80
CounterFunction · 0.80

Calls 2

EventHandlerClass · 0.90

Tested by 4

RootFunction · 0.64
SomeComponentFunction · 0.64
ParentFunction · 0.64
CounterFunction · 0.64