Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 => (
)}