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 3 years ago

Package Health Score

57 / 100
Full package analysis

Similar packages