react-markdown VS vite-plugin-svgr

Compare react-markdown vs vite-plugin-svgr and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
react-markdown vite-plugin-svgr
48 4
12,204 471
2.1% -
7.2 7.2
about 1 month ago 2 months ago
JavaScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

react-markdown

Posts with mentions or reviews of react-markdown. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-27.

vite-plugin-svgr

Posts with mentions or reviews of vite-plugin-svgr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-09.
  • Chrome Extension with React + CRXJS + Vite + Docker
    3 projects | dev.to | 9 May 2023
    If you want to use svg with React components, install vite-plugin-svgr.
  • Migrating from Create React App (CRA) to Vite
    6 projects | dev.to | 22 Aug 2022
    We need vite-plugin-svgr in order to import SVGs as React components. For example:
  • Repeating variable names for imports, types and switch. Got to be a better way!
    3 projects | /r/reactjs | 25 Feb 2022
    If you're using Vite, then maybe try one of these: - https://github.com/pd4d10/vite-plugin-svgr - https://github.com/vbenjs/vite-plugin-svg-icons
  • Using Vite with React
    18 projects | dev.to | 3 Apr 2021
    Instead of webpack svgr - vite has a community plugin vite-plugin-svgr. Looking at its source code I can tell that it does the work as needed. In the future, I may want to add more SVGR options (currently for custom colors we use css currentColor property), so I may contribute it or create a similar plugin. NOTE: vite bundles the static svg in addition to assets even if you use vite-plugin-svgr. So many useless files will be generated. This is a minor issue that can be unnoticeable. I created a script for deleting those files (it has 0 impacts on the bundle because the client does not download those chunks).

What are some alternatives?

When comparing react-markdown and vite-plugin-svgr you can also consider the following projects:

remark - markdown processor powered by plugins part of the @unifiedjs collective

webpack-bundle-analyzer - Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

remark-gfm - remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)

svgr - Transform SVGs into React components 🦁

gray-matter - Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert

awesome-vite - ⚡️ A curated list of awesome things related to Vite.js

rehype-sanitize - plugin to sanitize HTML

rollup-plugin-visualizer - 📈⚖️ Visuallize your bundle

micromark - small, safe, and great commonmark (optionally gfm) compliant markdown parser

vite-tsconfig-paths - Support for TypeScript's path mapping in Vite

remark-toc - plugin to generate a table of contents (TOC)

nivo - nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries