Socket
Socket
Sign inDemoInstall

@twreporter/react-article-components

Package Overview
Dependencies
130
Maintainers
7
Versions
431
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @twreporter/react-article-components

The Reporter react article components, which are used in article page


Version published
Weekly downloads
320
increased by8.47%
Maintainers
7
Created
Weekly downloads
 

Readme

Source

twreporter-react-components

What is this

The React components of articles at The Reporter Taiwan.

Published as an npm package.

Why do we this

This is built for twreporter-react and Editorial Tool (you can build the editorial tool using Plate). These Article React Components will be used on Article Page and Editorial Tool.

How to install this

yarn add @twreporter/react-article-components

How to use this

// es6
import Article from '@twreporter/react-article-components'

const Page = ({ record }) => <Article post={record} />

How to develop this

There are two dev modes:

  1. We use webpack-dev-server to render a mock article with all elements for development.

    # Start the webpack-dev-server
    npm run dev-server
    
  2. Or use babel --watch to complie the source file if there's any change happened

    make dev
    

How to build this

# Build the distribution files
make build

FAQs

Last updated on 23 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc