How to use the inferno-vnode-flags.ComponentFunction function in inferno-vnode-flags

To help you get started, we’ve selected a few inferno-vnode-flags examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infernojs / inferno / packages / inferno-create-element / __benchmarks__ / functionalcomponents.js View on Github external
function() {
      function Com() {
        return createVNode(InfernoVNodeFlags.Element, "div", null, "1");
      }

      render(
        createVNode(InfernoVNodeFlags.ComponentFunction, Com),
        this.testDiv
      );
    },
    {
github infernojs / inferno / packages / inferno-create-element / __benchmarks__ / functionalcomponents.js View on Github external
function() {
      function Com() {
        return createVNode(InfernoVNodeFlags.Element, "div", null, "1");
      }

      render(
        createVNode(InfernoVNodeFlags.ComponentFunction, Com, null, [
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),
          createVNode(InfernoVNodeFlags.ComponentFunction, Com),