
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
wix-react-tools
Advanced tools
This library provides helpful utilities and features for React components.
Current documentation (including this file) contains information matching the 3.1.x release, while the code is an advanced release candidate of 4.0.0. the changes between 3.1.x and 4.0.0 are yet only roughly documented in the Changelog.
Install wix-react-tools as a dependency in your local project.
Using npm:
npm install wix-react-tools --save
Using yarn:
yarn add wix-react-tools
To obtain the latest beta version, use the @next tag:
npm install wix-react-tools@next --save
A React Component Feature is a function that takes a component and returns a component with all the characteristics of the original component, plus one or more new features.
More details in React Component Features
Connects some common component properties to the component's render output.
More details in properties feature
Applies a stylable stylesheet to a component, Allowing it to use the stylesheet's class and state names natively.
More details in stylable feature
Helps manage clean-ups according to the lifecycle of the component.
More details in disposable feature
decorateReactComponent offers a way of applying hooks to React components in order to implement various features. These hooks temporarily monkey-patch React.createElement, React.cloneElement, and cloneElement (to be added soon) in order to customize every element created by your component. Further reading in decorateReactComponent
Produce unique ID values for react components More details in global ID
chainFunctionsAccept two function arguments. Returns a new function that when executed calls the two functions, one after the other with the same arguments, and returns void.
chainFunctions.cachedTo avoid unnecessary render calls when using this utility to produce a property, the cached modifier is a memoized version, meaning calling it twice with the same arguments will produce the same result.
function chainFunctions<T extends Function>(first:T, last:T):T
function chainFunctions.cached<T extends Function>(first:T, last:T):T & {clear():void}
The Disposers class is helpful in keeping track of disposer functions and clearing them when needed.
More details in disposers
Wrapping library for functions.
More details in function-decor
Hooks library for ES6 classes
More details in class-decor
Privately extend any object, without inheritance or visibility concerns.
More details in private-state
Static configuration allows passing any form of data/flags to tools.
More details in config
Constant values to use for configuring development mode on or off,
and synchronizes the config's development flag with process.env.NODE_ENV.
More details in dev mode
npm installnpm test to build and test the code in both nodejs and browsernpm start to run a development serverhttp://localhost:8080/webtest.bundle to run live tests that will update while you change the source codetypings-checker folder as well.The process is similar to that of new features, only the bar of explanations and documentations may be lower. start by opening an issue describing the bug.
FAQs
Utilities and helpers to build stunning react components
The npm package wix-react-tools receives a total of 71 weekly downloads. As such, wix-react-tools popularity was classified as not popular.
We found that wix-react-tools 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.