Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twreporter-react-header-components

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twreporter-react-header-components

## INSTALL

  • 1.0.4-beta.2
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
2
Weekly downloads
 
Created
Source

twreporter-react-header-components

INSTALL

Need Peer Dependencies:

yarn add lodash react react-dom lodash prop-types react-router react-transition-group styled-components

Install:

yarn add twreporter-react-header-components

USE

ES6:

import Header from 'twreporter-react-header-components/lib/components/header'

const Page = (props) => (
  <div>
    <Header
      isIndex
      pageTheme={props.pageTheme}
      pathName={props.pathName}
    />
    {props.children}
  </div>
)

Props:

  • isIndex: (boolean) The Component is used on index page or not.
  • pageTheme: (string) The page theme passed by twreporter-react. DARK or BRIGHT.
  • pathName: (string) The pathname passed by twreporter-react. With format likes /categories/inforgraphic, /photography .

Developement

Source code

  • For this package: /header-components/src/
  • Shared by all packages under twreporter-react-components: /shared/

gulp.watch

Automatically rebuild while files change.

cd twreporter-react-components/header-components
npm run dev

Build (pre-publish)

cd twreporter-react-components/header-components
npm run build

Pubish

cd twreporter-react-components/header-components
npm publish

FAQs

Package last updated on 02 Aug 2017

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

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