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

@packlify/client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@packlify/client

The `@packlify/client` module is a part of the Packlify Web SDK, designed to facilitate React hydration and client-side setups.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@packlify/client

The @packlify/client module is a part of the Packlify Web SDK, designed to facilitate React hydration and client-side setups.

Table of Contents

  • Installation
  • Features
  • Usage
  • Bin Files
  • Requirements
  • Contact

Installation

You can add this package to your project using npm:

npm install @packlify/client

Features

This package provides:

  • A hydrate function to simplify client-side hydration for React apps
  • Built-in support for react-router-dom
  • Command-line tools for building React code

Usage

JavaScript/TypeScript

To use the hydrate function in your React app:

import { hydrate } from '@packlify/client';

// Your main component
import App from './App';

// Use the hydrate function
hydrate(App);

// Use it with React Router
hydrate(App, true);

Bin Files

The package comes with two command-line tools:

  • packlify-build-ssr: Builds server-side React code
  • packlify-build-client: Builds client-side React code

Run the following to execute:

npx packlify-build-ssr
npx packlify-build-client

Requirements

  • Node.js
  • React 18.2.0 or higher
  • react-router-dom 6.15.0 or higher

Contact

Lucas Farias lukf95@gmail.com LinkedIn - GitHub

FAQs

Package last updated on 24 Sep 2023

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