We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the @uirouter/react.UIView.__internalViewComponent function in @uirouter/react

To help you get started, we’ve selected a few @uirouter/react 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 ui-router / react-hybrid / src / react / ReactUIView.tsx View on Github external
import * as React from 'react';
import { UIRouterConsumer, UIView, UIViewConsumer, UIViewProps } from '@uirouter/react';
import { UIRouterContextComponent } from './UIRouterReactContext';
import { debugLog } from '../debug';

const InternalUIView = UIView.__internalViewComponent;

export interface IReactUIViewProps extends UIViewProps {
  refFn: (ref: HTMLElement) => void;
}

export const ReactUIView = ({ refFn, ...props }: IReactUIViewProps) => {
  debugLog('react', 'ReactUIView', `?/${props['name']}`, '.render()', '');

  return (
    
      
        {router => (
          
            {parentUiView => (
              
            )}

@uirouter/react

State based routing for React

MIT
Latest version published 4 years ago

Package Health Score

61 / 100
Full package analysis

Similar packages