0.0.7 • Published 2 years ago

ui-debug-kit v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

UI Debug Kit

Various tools for debugging the layout and rendering of React component trees.

Installation

  • 1) npm install ui-debug-kit --save-exact

    The --save-exact flag is recommended (to disable version-extending), since this package uses Explicit Versioning (Release.Breaking.FeatureOrFix) rather than SemVer (Breaking.Feature.Fix).

    For FeatureOrFix version-extending (recommended for libraries), prepend "~" in package.json. (for Breaking, prepend "^")

Usage

Example:

// render function of a React component-class
render() {
	[...]

	// if condition is true at time of render, a red outline box is displayed for 3s (by default), with the given text overlaid
	if (someCondition) {
		FlashComp(this, {wait: 0, text: `Look at me!`});
	}

	return [...];
}
0.0.7

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago