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

@jonasknutsen/wp-react-components

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

@jonasknutsen/wp-react-components

React components for WordPress API

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

wp-react-coponents

Simple helper components in React, that takes values WordPress posts.

Install and use

npm install @jonasknutsen/wp-react-components

import React from 'react'
import {PostDate} from '@jonasknutsen/wp-react-components'

export default class Example extends React.Component {
  const {post} = this.props
  render () {
    return (
      <div>
        <PostDate post={post} />
      </div>
    )
  }
}

Components

PostDate

PropsValueDefaultRequiredComment
postobjecttrueThe WordPress post
publishedTextstring'Published'falseText before published date
modifiedTextstring'Modified'falseText before modified date
classNamestringfalseClass name for outer div

PostDateInline

PropsValueDefaultRequiredComment
postobjecttrueThe WordPress post
publishedTextstring'Published'falseText before published date
modifiedTextstring'Modified'falseText before modified date
classNamestringfalseClass name for outer span
showDiffboolfalsefalseShow modified date, if applicable

Keywords

React

FAQs

Package last updated on 28 Aug 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