{"library":"babel-plugin-transform-react-class-to-function","type":"library","category":null,"description":"A Babel 7 plugin that transforms React class components into functional components. Current stable version is 1.2.2. Release cadence is low; last update was several years ago. Key differentiator: automates conversion to reduce bundle size, avoids manual refactoring. Compared to alternatives like babel-plugin-transform-react-pure-class-to-function, it supports Babel 7 and offers a 'memo' option to handle PureComponent and shouldComponentUpdate.","language":"javascript","status":"maintenance","version":"1.2.2","tags":["javascript","babel","babel-plugin","react"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-transform-react-class-to-function","imports":["import plugin from 'babel-plugin-transform-react-class-to-function'","module.exports = { plugins: ['babel-plugin-transform-react-class-to-function'] }","import { transformSync } from '@babel/core'; transformSync(code, { plugins: ['babel-plugin-transform-react-class-to-function'] })"]},{"cmd":"yarn add babel-plugin-transform-react-class-to-function","imports":[]},{"cmd":"pnpm add babel-plugin-transform-react-class-to-function","imports":[]}],"homepage":null,"github":"https://github.com/remcohaszing/babel-plugin-transform-react-class-to-function","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-transform-react-class-to-function","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-transform-react-class-to-function/compatibility"}}