{"library":"prettier-plugin-react","title":"Prettier Plugin React","description":"Prettier plugin for React (v0.0.1, experimental). Reformats JSX/TSX with custom options. Not yet stable; limited adoption. Differentiates by providing React-specific formatting beyond built-in Prettier JSX support.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-react"],"cli":null},"imports":["import prettierPluginReact from 'prettier-plugin-react'","import { options } from 'prettier-plugin-react'","import type { Plugin } from 'prettier-plugin-react'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import prettier from 'prettier';\nimport prettierPluginReact from 'prettier-plugin-react';\n\nconst code = `const App = () => <div>Hello</div>;`;\n\nprettier.format(code, {\n  parser: 'babel',\n  plugins: [prettierPluginReact],\n  jsxSingleQuote: true,\n}).then(result => console.log(result));\n// Output: const App = () => <div>Hello</div>;\n","lang":"typescript","description":"Shows how to use the plugin with Prettier API to format JSX code with custom options.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}