new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

React · Errors and warnings · all subjects

react errors/debugging

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Use development build locally for full error messages and debug info

The development build of React tracks additional debug information and provides helpful warnings about potential problems in your apps. It is highly recommended to use the development build locally when debugging your app to see full error messages instead of production build error messages.

Detect Hook rule violations with eslint-plugin-react-hooks

The eslint-plugin-react-hooks plugin can be used to automatically catch violations of the Rules of Hooks.

Debug duplicate React with window reference test

To debug whether you have duplicate React packages, add 'window.React1 = require('react');' in node_modules/react-dom/index.js, then add 'require('react-dom'); window.React2 = require('react'); console.log(window.React1 === window.React2);' in your component file. If it prints false, you have two React copies.

Give your agent this brain