React Doctor
react-doctor
Your agent writes bad React. This catches it
React Native Libraries
accessibility
diagnostics
linter
nextjs
oxlint
performance
react
react-compiler
react-native
security
Stars
15k
Weekly
1.5M
Open issues
85
Bundle
~25 kB
Installation
npm install react-doctorCode example
import { View, Text, StyleSheet } from "react-native";
import { Doctor } from "react-doctor";
export function Example() {
return (
<View style={styles.box}>
<Text style={styles.title}>React Doctor</Text>
<Doctor />
</View>
);
}
const styles = StyleSheet.create({
box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
title: { fontSize: 18, fontWeight: "600" },
});Pros & cons
Pros
- Actively maintained by Million Software, Inc
- 1.5M weekly downloads. Battle tested
- First-class TypeScript definitions
- SEE LICENSE IN LICENSE licensed
Considerations
- Adds roughly ~25 kB to your bundle
- 85 open issues on GitHub