![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.
@servicetitan/anvil2
Advanced tools
Anvil2 contains reusable components, fonts, icons, and more for building ServiceTitan products.
We recommend installing Anvil2 by running the following npm
command (or the equivalent yarn
/pnpm
command) in your project folder:
npm install @servicetitan/anvil2
NOTE: Using Anvil2 React components requires a minimum of React 18+.
Named components can be imported:
import { Button, Icon } from "@servicetitan/anvil2";
It's also possible to import a specific cherry-picked component, which may assist in producing smaller bundle sizes:
import Button from "@servicetitan/anvil2/Button";
Anvil2 icons are expected to be used with the SVGR library, which will import SVGs as React components. SVGR should already be part of the latest @servicetitan/startup
Webpack configuration.
Importing and using an icon:
import Icon from "@servicetitan/anvil2/Icon";
import Button from "@servicetitan/anvil2/Button";
import Warning from "@servicetitan/anvil2/assets/icons/material/round/warning.svg";
import Star from '@servicetitan/anvil2/assets/icons/material/round/star.svg';
import LocalSettings from '@servicetitan/anvil2/assets/icons/st/local_settings.svg';
<Icon svg={Warning} size="large" />
<Button icon={Star} aria-label="Favorite" />
<Button icon={LocalSettings}>Settings</Button>
When using the Anvil2 component library, we recommend wrapping the top level of your app in the AnvilProvider
component, which also supports light/dark themes and localization configuration:
import AnvilProvider from "@servicetitan/anvil2/AnvilProvider";
<AnvilProvider themeData={...} localizationData={...}>
...
</AnvilProvider>
You can read the Anvil2 docs at: https://anvil.servicetitan.com/
We welcome contributions of all kinds from design to code. Please see our guide to contributing.
FAQs
Anvil2 React Library
The npm package @servicetitan/anvil2 receives a total of 2,834 weekly downloads. As such, @servicetitan/anvil2 popularity was classified as popular.
We found that @servicetitan/anvil2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.