How to use the inferno.cloneVNode function in inferno

To help you get started, we’ve selected a few inferno 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 jhsware / inferno-bootstrap / lib / TetherContent.jsx View on Github external
renderChildren() {
    const { children, style } = this.props;
    // Was: return React.cloneElement( ?> const cloneElement = injectStringRefs(cloneVNode);
    return cloneVNode(children,
      { style }
    );
  }
github infernojs / inferno / packages / inferno-router / src / match.ts View on Github external
redirect: matchChild.redirect
            };
          }
          if (matchChild.matched) {
            children = matchChild.matched;
            const childProps = children.props.params;
            for (const key in childProps) {
              params[key] = childProps[key];
            }
          }
        } else {
          children = null;
        }
      }

      const matched = Inferno.cloneVNode(route, {
        children,
        params: combineFrom(params, matchBase.params)
      });

      return {
        location,
        matched,
        redirect
      };
    }
  }
}