Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@farfetch/blackout-react

Package Overview
Dependencies
8
Maintainers
1
Versions
340
Issues
File Explorer

Advanced tools

@farfetch/blackout-react

React components, hooks and other tools filled with business logic to help you use Farfetch Platform Solutions' services in your web or native e-commerce app

    0.54.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
1,523
increased by75.06%

Weekly downloads

Changelog

Source

Release @farfetch/blackout-react@0.54.0

Bug Fixes

  • refactor serverInitialState (f1a1f87)

Features

  • add parameters checkout abandoned event (b4aae5c)

Readme

Source

@farfetch/blackout-react

React components, hooks and other tools filled with business logic to help you use Farfetch Platform Solutions' services in your web or native e-commerce app

Installation

yarn

yarn add @farfetch/blackout-react

npm

npm i @farfetch/blackout-react

Peer dependencies

Make sure that you have installed the correct Farfetch's peer dependencies:

Usage

You just need to import and use what you need

// Managing a bag item import { useBagItem } from '@farfetch/blackout-react/bags'; const { error, isLoading } = useBagItem(bagItemId);

Additional configuration

Since this package is published in its original structure, all the source code is contained in a src folder. This means you might need additional configurations:

  • In order to have friendly imports (@farfetch/blackout-react vs @farfetch/blackout-react/src), you probably want to add aliases

    // Webpack example config.resolve.alias = { '@farfetch/blackout-react': '@farfetch/blackout-react/src', };
  • In order to have your project running, you probably need a specific loader

    // Webpack example config.module.rules.push({ test: /\.jsx?$/, include: [/node_modules\/@farfetch\/blackout-react/], use: [ { loader: 'babel-loader', options: myBabelConfig, }, ], });

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

Please read the CONTRIBUTING file to know what we expect from your contribution and the guidelines you should follow.

License

MIT @ Farfetch

FAQs

Last updated on 21 Mar 2023

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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