MCPcopy Create free account

hub / github.com/angelsolaorbaiceta/fe-fwk-book / functions

Functions538 in github.com/angelsolaorbaiceta/fe-fwk-book

↓ 749 callersFunctionh
(tag, props = {}, children = [])
packages/runtime/src/h.js:56
↓ 136 callersFunctionhFragment
(vNodes)
packages/runtime/src/h.js:124
↓ 77 callersFunctiondefineComponent
({ render, state, onMounted = emptyFn, onUnmounted = emptyFn, ...methods })
packages/runtime/src/component.js:43
↓ 76 callersFunctionmountDOM
(vdom, parentEl, index, hostComponent = null)
packages/runtime/src/mount-dom.js:22
↓ 74 callersFunctionhString
(str)
packages/runtime/src/h.js:103
↓ 62 callersFunctionpatch
(oldVdom, newVdom, hostComponent = null)
packages/runtime/src/__tests__/patch-dom.test.js:1195
↓ 43 callersFunctiondefineComponent
({ render, state, onMounted = emptyFn, onUnmounted = emptyFn, ...methods })
listings/ch13/listing_02.js:1
↓ 41 callersMethodmount
* Mounts the component into the parent HTML element and wires the event handlers. * Then calls the `onMounted()` lifecycle method and returns a p
packages/runtime/src/component.js:226
↓ 40 callersMethodupdateState
(state)
listings/ch09/listing_07.js:45
↓ 37 callersFunctionsingleHtmlLine
(str)
packages/runtime/src/__tests__/utils.js:8
↓ 25 callersFunctiondestroyDOM
(vdom)
packages/runtime/src/destroy-dom.js:14
↓ 25 callersFunctionemit
(eventName, payload)
listings/ch05/listing_07.js:9
↓ 25 callersMethodnavigateTo
* Navigates to the given route path, matching it to a component * and pushing it to the browser's history. * * When there isn't a "catch-all"
packages/runtime/src/router.js:267
↓ 23 callersMethodupdateState
* Updates all or part of the component's state and patches the DOM to reflect the changes. * * @param {Object.<string, Any>} state the new s
packages/runtime/src/component.js:182
↓ 21 callersFunctionsetAttributes
(el, attrs)
packages/runtime/src/attributes.js:15
↓ 20 callersMethodinit
* Initializes the router by matching the current route to a component and * listening for the browser's popstate events. * * If there is no h
packages/runtime/src/router.js:222
↓ 19 callersFunctionarraysDiffSequence
( oldArray, newArray, equalsFn = (a, b) => a === b )
packages/runtime/src/utils/arrays.js:105
↓ 19 callersMethodemit
(eventName, payload)
listings/ch11/listing_15.js:6
↓ 19 callersFunctionnextTick
()
packages/runtime/src/scheduler.js:53
↓ 18 callersFunctionareNodesEqual
(nodeOne, nodeTwo)
packages/runtime/src/nodes-equal.js:60
↓ 17 callersFunctionapplyArraysDiffSequence
(oldArray, diffSeq)
packages/runtime/src/utils/arrays.js:150
↓ 17 callersFunctionpatchDOM
(oldVdom, newVdom, parentEl, hostComponent = null)
packages/runtime/src/patch-dom.js:39
↓ 15 callersFunctioncreateApp
(RootComponent, props = {}, options = {})
packages/runtime/src/app.js:32
↓ 14 callersMethodmount
(hostEl, index = null)
listings/ch09/listing_03.js:18
↓ 13 callersFunctionenqueueJob
(job)
packages/runtime/src/scheduler.js:12
↓ 13 callersFunctionh
(tag, props = {}, children = [])
listings/ch03/listing_02.js:12
↓ 13 callersFunctionhSlot
(children = [])
packages/runtime/src/h.js:196
↓ 13 callersMethodsubscribe
* Subscribes a handler function to the router's route change events. * The handler is called every time the route changes, and the handler is passe
packages/runtime/src/router.js:340
↓ 13 callersMethodunmount
* Unmounts the component from the DOM and calls the `onUnmounted()` lifecycle method.
packages/runtime/src/component.js:258
↓ 11 callersFunctionarraysDiff
(oldArray, newArray)
packages/runtime/src/utils/arrays.js:38
↓ 11 callersFunctionassert
(condition, message = 'Assertion failed')
packages/runtime/src/utils/assert.js:1
↓ 11 callersFunctionhandler
()
packages/runtime/src/__tests__/events.test.js:19
↓ 11 callersFunctionmountDOM
(vdom, parentEl/*--add--*/, index/*--add--*/)
listings/ch08/listing_02.js:1
↓ 10 callersMethoddispatch
* Dispatches a command to all registered handlers and runs all * handlers registered to run after each command. * * Displays a warning if the
packages/runtime/src/dispatcher.js:63
↓ 10 callersFunctionextractPropsAndEvents
(vdom)
packages/runtime/src/utils/props.js:15
↓ 10 callersFunctionobjectsDiff
(oldObj, newObj)
packages/runtime/src/utils/objects.js:26
↓ 10 callersFunctionvalidateRoute
(route)
packages/runtime/src/route-matchers.js:30
↓ 9 callersMethoddestroy
* Stops listening to the browser's popstate events. If the router is not * initialized, calling this method has no effect. * * Call this meth
packages/runtime/src/router.js:243
↓ 9 callersFunctionflushPromises
()
packages/runtime/src/utils/promises.js:1
↓ 8 callersFunctiondestroyDOM
(vdom)
listings/ch04/listing_11.js:4
↓ 8 callersMethodemit
* Emits an event to the parent component. * * @param {string} eventName The name of the event to emit * @param {Any} [payload] The payl
packages/runtime/src/component.js:278
↓ 8 callersMethodupdateProps
* Updates all or part of the component's props and patches the DOM to reflect the changes. * This method shouldn't be called from within the comp
packages/runtime/src/component.js:167
↓ 7 callersFunctionaddEventListener
( eventName, handler, el, hostComponent = null )
packages/runtime/src/events.js:35
↓ 7 callersFunctionextractChildren
(vdom)
listings/ch08/listing_18.js:1
↓ 7 callersFunctionfindIndexInParent
(parentEl, el)
listings/ch08/listing_07.js:15
↓ 7 callersFunctionremoveAttribute
(el, name)
packages/runtime/src/attributes.js:59
↓ 6 callersFunctionallElementsHaveBeenDestroyed
(vdom)
packages/runtime/src/__tests__/destroy-dom.test.js:121
↓ 6 callersFunctionformatMoney
(amount)
examples/ch12/irpf/components/table.js:66
↓ 6 callersFunctionmakeCountMap
(array)
packages/runtime/src/utils/maps.js:67
↓ 6 callersFunctionpatchText
(oldVdom, newVdom)
listings/ch08/listing_09.js:1
↓ 6 callersMethodremoveItem
(index)
listings/ch07/listing_08.js:9
↓ 6 callersFunctionstate
()
listings/ch14/listing_02.js:2
↓ 5 callersFunctionfillSlots
(vdom, externalContent = [])
packages/runtime/src/slots.js:14
↓ 5 callersMethodisRemoval
(index, newArray)
listings/ch07/listing_07.js:17
↓ 5 callersFunctionmapsDiff
(oldMap, newMap)
packages/runtime/src/utils/maps.js:34
↓ 5 callersFunctionrender
()
listings/ch14/listing_02.js:14
↓ 4 callersFunctionextractChildren
(vdom)
packages/runtime/src/h.js:227
↓ 4 callersFunctionh
(tag, props = {}, children = [])
listings/ch11/listing_01.js:10
↓ 4 callersFunctioninsert
(el, parentEl, index)
listings/ch08/listing_01.js:1
↓ 4 callersMethodisNoop
(index, newArray)
listings/ch07/listing_10.js:5
↓ 4 callersFunctionmakeButton
()
packages/runtime/src/__tests__/events.test.js:75
↓ 4 callersFunctionmountDOM
( vdom, parentEl, index, /*--add--*/hostComponent = null/*--add--*/ // --1-- )
listings/ch10/listing_04.js:1
↓ 4 callersMethodnoopItem
(index)
listings/ch07/listing_11.js:13
↓ 4 callersMethodrender
()
listings/ch10/listing_12.js:47
↓ 4 callersFunctionrenderTodoInReadMode
(todo)
examples/ch02/todos.js:29
↓ 4 callersFunctionrenderTodoInReadMode
(todo)
listings/ch02/listing_03.js:21
↓ 4 callersMethodsetAppContext
(appContext)
packages/runtime/src/component.js:90
↓ 4 callersFunctionwithoutNulls
(arr)
packages/runtime/src/utils/arrays.js:20
↓ 3 callersMethod#patch
()
listings/ch10/listing_12.js:75
↓ 3 callersMethodaddItem
(item, index)
listings/ch07/listing_14.js:19
↓ 3 callersMethodafterEveryCommand
(handler)
listings/ch05/listing_02.js:10
↓ 3 callersFunctionbrowserNavigateTo
(path)
packages/runtime/src/__tests__/router.test.js:443
↓ 3 callersFunctioncreateTextNode
(vdom, parentEl/*--add--*/, index/*--add--*/)
listings/ch08/listing_03.js:1
↓ 3 callersMethoddispatch
(commandName, payload)
listings/ch05/listing_03.js:5
↓ 3 callersFunctionhasOwnProperty
(obj, prop)
packages/runtime/src/utils/objects.js:41
↓ 3 callersFunctioninitPackage
* Creates the directory for the package with the given name and copies the * template files. * * @param {string} projectDir the path to the project
packages/cli/src/init.cjs:77
↓ 3 callersMethodisAddition
(item, fromIdx)
listings/ch07/listing_14.js:4
↓ 3 callersFunctionmakeRouteMatcher
(route)
packages/runtime/src/route-matchers.js:66
↓ 3 callersFunctionmapTextNodes
(children)
listings/ch03/listing_04.js:1
↓ 3 callersFunctionpatchChildren
(oldVdom, newVdom)
listings/ch08/listing_22.js:1
↓ 3 callersFunctionpatchDOM
(oldVdom, newVdom, parentEl)
listings/ch08/listing_07.js:5
↓ 3 callersFunctionpatchDOM
(oldVdom, newVdom, parentEl/*--add--*/, hostComponent = null/*--add--*/)
listings/ch09/listing_09.js:1
↓ 3 callersFunctionpatchElement
(oldVdom, newVdom)
listings/ch08/listing_11.js:1
↓ 3 callersMethodrender
* Fills in the slots of the component's virtual DOM tree with the passed * in children, and returns the resulting virtual DOM tree. * *
packages/runtime/src/component.js:207
↓ 3 callersFunctionsetAttribute
(el, name, value)
packages/runtime/src/attributes.js:43
↓ 3 callersMethodsetExternalContent
* Saves the views passed as children to the vdom that defines the component. * When the component render method is called, this views are placed
packages/runtime/src/component.js:197
↓ 3 callersFunctionsetStyle
(el, name, value)
packages/runtime/src/attributes.js:71
↓ 3 callersMethodsubscribe
(commandName, handler)
listings/ch05/listing_01.js:4
↓ 3 callersFunctiontraverseDFS
( vdom, processNode, shouldSkipBranch = () => false, parentNode = null, index = null )
packages/runtime/src/traverse-dom.js:20
↓ 3 callersMethodunmount
()
listings/ch10/listing_12.js:63
↓ 3 callersFunctionwriteTodos
(todos)
examples/ch13/todos/todos-repository.js:5
↓ 2 callersMethod#matchCurrentRoute
()
packages/runtime/src/router.js:378
↓ 2 callersMethod#patch
()
packages/runtime/src/component.js:282
↓ 2 callersFunctionaddEventListener
( eventName, handler, el, /*--add--*/hostComponent = null/*--add--*/ // --3-- )
listings/ch10/listing_03.js:21
↓ 2 callersFunctionaddEventListeners
( listeners = {}, el, hostComponent = null )
packages/runtime/src/events.js:10
↓ 2 callersFunctionaddEventListeners
( listeners = {}, el, /*--add--*/hostComponent = null/*--add--*/ // --1-- )
listings/ch10/listing_03.js:1
↓ 2 callersFunctionaddProps
(el, vdom, hostComponent)
listings/ch12/listing_06.js:5
↓ 2 callersFunctionaddProps
(el, props, vdom)
listings/ch04/listing_04.js:17
↓ 2 callersFunctionaddTodo
()
examples/ch02/todos.js:85
↓ 2 callersFunctionaddTodo
()
listings/ch02/listing_03.js:25
next →1–100 of 538, ranked by callers