📄️ xnew
xnew simplifies component-oriented programming by providing a flexible and intuitive API.
📄️ xnew.nest
xnew.nest creates a new element as a child of the current element and replaces unit.element.
📄️ xnew.extend
xnew.extend allows you to extend a component function by combining it with another one.
📄️ xnew.timer
xnew.timer creates a timer that executes a callback function after a specified delay. The callback function is executed within the current xnew scope, ensuring that it has access to the same context as other xnew operations.
📄️ xnew.interval
xnew.interval creates an interval function that repeatedly calls a callback function at a specified time interval. The callback function is executed within the current xnew scope, ensuring it operates in the same context as other xnew operations.
📄️ xnew.transition
xnew.transition executes repetitive processing for a specified period of time. The callback function is executed within the current xnew scope, ensuring it operates in the same context as other xnew operations.
📄️ xnew.promise
The xnew.promise function allows you to handle asynchronous operations within the current xnew scope. Unlike a standard Promise, where the then or catch handlers execute independently of the xnew scope, using xnew.promise ensures that these handlers are executed within the current xnew context.
📄️ xnew.context
The xnew.context function allows you to set and retrieve context properties that can be accessed across nested units.
📄️ xnew.find
xnew.find retrieves all units created using a specific component function.