
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
react-prelodr
Advanced tools
yarn add react-prelodr --dev
npm install react-prelodr --save-dev
import React from 'react'
import ReactDOM from 'react-dom'
import ReactPrelodr from 'react-prelodr'
class App extends React.Component {
onClick () {
// Get the wrapper component reference
const pre = this.refs.myRef
// You can also get the Prelodr instance for access to API (optional)
const PrelodrInstance = pre.getPrelodr()
// Play
pre
.show('Starting...')
.hide()
.show('Processing...')
.hide()
.show('Finishig...')
.hide()
}
onShown () {
console.log('When component is shown!')
}
onHidden () {
console.log('When component is hidden!')
}
render () {
return <div>
<button onClick={this.onClick.bind(this)}>Show Prelodr</button>
<ReactPrelodr ref='myRef'
prefixClass='prelodr'
duration={800}
onShown={this.onShown}
onHidden={this.onHidden}
/>
</div>
}
}
ReactDOM.render(
<App />,
document.getElementById('root')
)
Check out Codepen Demo for more details.
The UMD and style files are also available on unpkg:
<!-- Prelodr Style -->
<link href="https://unpkg.com/prelodr/dist/prelodr.min.css">
<!-- React-Prelodr Component -->
<script src="https://unpkg.com/react-prelodr/dist/react-prelodr.min.js"></script>
MIT license
© 2017 José Luis Quintana
FAQs
A React component based on Prelodr
We found that react-prelodr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.