New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

spaman

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spaman

Single Page Application Manager

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

spaman

Single Page Application Manager

import * as _ from "lodash";
import * as React from "react";
import {SpaControllers} from "spaman";

import HomePage from "pages/HomePage";
import SamplePage1 from "pages/SamplePage1";
import SamplePage2 from "pages/SamplePage2";

const h = React.createElement

const Home = "Home"

export const Controllers =  {
  [Home]: SpaControllers.functional("Home", "", (qparams) => <HomePage/>),
  Sample1: SpaControllers.functional("Sample1", "sample1", (qparams) => <SamplePage1/>),
  Sample2: SpaControllers.functional("Sample2", "sample2", (qparams) => h(SamplePage2)),
}

Keywords

react

FAQs

Package last updated on 07 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts