New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-delay-render

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-delay-render

a component that delays the rendering of child components

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
870
decreased by-22.39%
Maintainers
1
Weekly downloads
 
Created
Source

Coverage Status Build Status

React-Delay-Render

A small component that delays the rendering of components.

Usage

Download the package from npm with

npm i -S react-delay-render
import React from 'react';
import ReactDelayRender from 'react-delay-render';

const SmallRow = () => (
  <div className="row">
    ...
  </div>
);

export default ReactDelayRender({ delay: 500 })(SmallApp);

Argument Object

The Higher order component takes in two arguments, delay and a callback onRender

Delay

You can use the delay on the delayed component and the children as well.

import Delay from 'react-delay-render';

const delay = (
  <MyDelayedComponent>
    <MyOtherDelayedComponent />
  </MyDelayedComponent>
);

export default Delay({ delay: 200 })(delay);

onRender

A callback that is triggered when the rendering has started

import Delay from 'react-delay-render';

const render = () => {
  console.log('I am rendering');
};

const ExampleTwo = () => (
  <DelayedComponent>
    <MyComponent />
  </DelayedComponent>
);

export default Delay({delay: 500, onRender: render})()

Keywords

FAQs

Package last updated on 23 May 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