Socket
Socket
Sign inDemoInstall

static-container

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    static-container

react StaticContainer


Version published
Weekly downloads
12K
increased by6.49%
Maintainers
1
Install size
3.53 kB
Created
Weekly downloads
 

Readme

Source

static-container npm version


A React component wrapper for update performance improvement.

Example

EXAMPLE

Wrap any components inside StaticContainer and set shouldUpdate={false}.

The children inside StaticContainer will not be updated from parent life cycle.

Use it wisely.

import React from 'react';
import StaticContainer from 'status-container';

function SomeComponent() {
  return (
    <StaticContainer shouldUpdate={false}>
      <TheComponentWillNeverUpdated />
    <StaticContainer/>
  )
}

Keywords

FAQs

Last updated on 10 Mar 2021

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