![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.
@reuters-graphics/graphics-svelte-components
Advanced tools
![](https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg)
Svelte components for graphics pages.
Built with:
yarn add @reuters-graphics/graphics-svelte-components
<script>
import { Nav } from '@reuters-graphics/graphics-svelte-components';
</script>
<Nav />
... for details on using all the components included.
If you're using this package with SvelteKit (which uses Vite), you'll likely need to add some of its dependencies to Vite's dependency pre-bundling config. For example:
export default {
// ...
kit: {
// ...
vite: {
// ...
optimizeDeps: {
include: ['lodash-es', 'pym.js', 'classnames', 'ua-parser-js'],
},
},
},
};
If you're using the graphics kit this config is already included.
First step: make a branch for your new component.
Next, add your component in a folder one level below src/lib
, for example:
src/
lib/
MyComponent/ 👈
index.svelte 👈
Be sure to export your component from the library's entry module, src/lib/index.js
:
// src/lib/index.js
export { default as MyComponent } from './MyComponent/index.svelte';
To document and demo your component, add a docs.svx
file in your component directory:
MyComponent/
docs.svx 👈
index.svelte
Use Svelte in Markdown syntax to demo your component and document its features.
Note, you must add some basic frontmatter data -- a title, description and slug -- to make your demo page discoverable in the demo site.
---
title: MyComponent
description: A component that does things.
slug: my-component
---
<script>
import MyComponent from './index.svelte';
import DemoContainer from '../_docs/DemoContainer/index.svelte';
</script>
# MyComponent
A component that does things.
```svelte
<script>
import { MyComponent } from '@reuters-graphics/graphics-svelte-components';
</script>
<MyComponent />
```
<DemoContainer>
<MyComponent />
</DemoContainer>
When you're ready, make a pull pequest for your component.
Once you've completed documenting your component, commit it and then version the package, which will publish the library to npm:
git add .
git commit -m "my new component added"
git push origin master
npm version patch
FAQs
![](https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg)
The npm package @reuters-graphics/graphics-svelte-components receives a total of 44 weekly downloads. As such, @reuters-graphics/graphics-svelte-components popularity was classified as not popular.
We found that @reuters-graphics/graphics-svelte-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.