Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@twreporter/react-components
Advanced tools
[![Tag](https://img.shields.io/github/tag/twreporter/twreporter-react-components.svg)](https://github.com/twreporter/twreporter-react-components/tags) [![NPM version](https://img.shields.io/npm/v/@twreporter/react-components.svg)](https://www.npmjs.com/pa
Need Peer Dependencies:
yarn add react react-dom react-router
Install:
yarn add @twreporter/react-components
@twreporter/react-components pkg provides many react components we are using in our website. It contains
These components are used to render twreporter main site homepage.
Check source code to understand how to use it.
Our main site uses header
component to render the header.
Check source code to understand how to use it well.
Our main site uses footer
component to render the footer.
Topic listing page uses pagination
component to show the page list.
Check source code here.
listing-page
contains two different lists, one is topic list, another is post list.
Check topic list source code and post list source code to know how to use it.
This high-risk-youth-life-is-a-struggle multimedia work is using fullpage-slides
to render.
Check out the source code
In high-risk-youth-life-is-a-struggle multimedia work, you will see two images sliding from different direction to compose a single full image. That tech is using cinemagraph
component.
Checkout the source code here.
import { Confirmation } from '@twreporter/react-components'
const Page = (props) =>(
<div>
<Confirmation
onCancel={this.onCancel}
onConfirm={this.onConfirm}
content={DIALOG_CONTENT}
confirm={DIALOG_CONFIRM}
cancel={DIALOG_CANCEL}
/>
</div>
)
props:
onCancel
(func): User click on cancel button will trigger onCancelonConfirm
(func): User click on cancel button will trigger onConfirmcontent
(string): Information in dialogconfirm
(string): confirm button textcancel
(string): cancel button textnpm run dev
will build the package into the customer folder, and start watching the .js
files change.
If any .js
file has been changed, gulp
will babel changed files into the customer folder automatically.
cd twreporter-react-components
npm run dev
cd twreporter-react-components
npm run build
cd twreporter-react-components
npm publish
FAQs
[![NPM version](https://img.shields.io/npm/v/@twreporter/react-components.svg)](https://www.npmjs.com/package/@twreporter/react-components)
The npm package @twreporter/react-components receives a total of 88 weekly downloads. As such, @twreporter/react-components popularity was classified as not popular.
We found that @twreporter/react-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.