![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@wistia/vhs
Advanced tools
VHS is a component library intended to provide a wide range of building blocks for React UIs.
Building user interfaces is time consuming, code-heavy, and challenging to maintain consistency in the design and the code patterns. VHS gives Wistia engineers confidence that they can build UIs quickly and maintain consistency with a DRY code approach.
VHS is currently in the wistia/wistia
repo, but will be moved to it's own repo and imported as an npm module in the future.
But importing and using the components will essentially be the same as if they were in an npm module:
import { ComponentName } from '@wistia/vhs';
In VHS, we use 2 types of testing: Jest for unit tests and Percy for automated visual regression testing.
coming soon...
Percy is an automated visual regression platform. Per the current setup, these automated visual regression "snapshots" are triggered manually by engineers.
$ export PERCY_TOKEN=<WISTIA-PERCY-TOKEN>
get token from Percy settings page$ yarn vhs:build
- Need to first build a static version of Storybook$ yarn vhs:snapshot
- Fire the Percy snapshot.Also, check out Percy's dev docs.
VHS uses Storybook as a styleguide generator for components. To add a styleguide "story", add a ComponentName.stories.jsx
file next to the ComponentName.jsx
.
Run yarn vhs
to start Storybook locally.
Storybook empowers us to create non-component stories too! Here is the documentation on that.
Currently we have a handful of vhs/.storybook/*.stories.mdx
files that which have names prefixed with numbers and letters in order to force their order in Storybook's navigation. That section of docs are first in the Storybook navigation because they are compiled first inside vhs/.storybook/main.js
# [all the custom MDX files + all the components stories]
module.exports = {
stories: ['../*.stories.(jsx|mdx)', '../../src/**/*.stories.(jsx|mdx)'],
...
};
To complete the addition of a custom MDX doc files, you must include the following at the top of the file:
import { Meta, Subtitle } from '@storybook/addon-docs/blocks';
<Meta title="Foundations/..." />
# This is a custom H1 that will appear in the doc
<Subtitle>This is a nice thing to include, but not required in docs</Subtitle>
The rest of the file can be full of anything that can be included in MDX files - markdown and even components!
The <Meta />
component decides the placement of the document in the navigation. Separating the title
attribute's strings injects hierarchy. For example, Foundations/Get Started/Overview
means the document will be inside the Foundation
navigation section, inside the Get Started
folder, and be titled Overview
. This doesn't set the <h1 />
in the document though, as you can see in the example above.
These types of MDX files can also be added to individual components. Just use this same <Meta title="..." />
naming approach.
FAQs
Visual Hype System - Wistia's opinionated component library for building React UIs
We found that @wistia/vhs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.