New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uinz-navigator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uinz-navigator - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

dist/index.js

@@ -38,6 +38,8 @@ 'use strict';

var path = props.path,
render = props.render,
component = props.component,
zIndex = props.zIndex,
children = props.children,
className = props.className,
rest = _objectWithoutProperties(props, ['path', 'zIndex', 'children', 'className']);
rest = _objectWithoutProperties(props, ['path', 'render', 'component', 'zIndex', 'children', 'className']);

@@ -49,3 +51,3 @@ return _react2.default.createElement(

className: (0, _classnames2.default)('uinz-navigator-page', className) }),
children
component || children || render && render()
);

@@ -52,0 +54,0 @@ };

{
"version": "0.0.1",
"version": "0.0.2",
"name": "uinz-navigator",

@@ -7,3 +7,4 @@ "main": "index.js",

"example": "webpack-dev-server",
"gh-page": "webpack && gulp gh-page"
"gh-page": "webpack && gulp gh-page",
"publish": "rm -rf dist && babel src -d dist && npm publish"
},

@@ -10,0 +11,0 @@ "dependencies": {

@@ -7,2 +7,17 @@ # react web navigator

`npm install uinz-navigator` or `yarn add uinz-navigator`
```js
import {Navigator, Page} from 'uinz-navigator'
import 'uinz-navigator/dist/style.css'
<Navigator>
<Page path='some/path1' component={Page1} />
<Page path='some/path2' render={() => <Page2 />} />
<Page path='some/path3'>
<h1>page3</h1>
</Page>
</Navigator>
```
[example](https://github.com/uinz/uinz-navigator/blob/master/example/index.js)

@@ -9,0 +24,0 @@

@@ -8,3 +8,3 @@ import React, {Component, cloneElement} from 'react';

const {path, // eslint-disable-line
zIndex, children, className, ...rest} = props;
render, component, zIndex, children, className, ...rest} = props;
return (

@@ -14,3 +14,3 @@ <div {...rest}

className={classnames('uinz-navigator-page', className)}>
{children}
{component || children || render && render()}
</div>

@@ -17,0 +17,0 @@ );

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc