
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
create-react-class
Advanced tools
A drop-in replacement for React.createClass.
Refer to the React documentation for more information.
The main React package itself now supports hooks, which can be used to write components in a functional style without classes. Hooks provide similar functionalities to lifecycle methods and state management without the need for create-react-class.
Preact-compat is a layer over Preact that attempts to achieve React compatibility with a smaller footprint. It allows you to use React-like components and lifecycle methods, similar to create-react-class, but with Preact's optimizations.
Recompose is a React utility belt for function components and higher-order components. It provides the ability to write components in a functional manner and can be seen as an alternative to create-react-class, especially before hooks were introduced in React.
FAQs
Legacy API for creating React components.
The npm package create-react-class receives a total of 1,679,897 weekly downloads. As such, create-react-class popularity was classified as popular.
We found that create-react-class demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.