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/deprecation

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.

ReactTestRenderer.create() is deprecated

react-test-renderer is deprecated. A warning will fire whenever calling ReactTestRenderer.create() or ReactShallowRender.render(). The react-test-renderer package will remain available on NPM but will not be maintained and may break with new React features or changes to React's internals.

React recommends migrating from react-test-renderer

The React Team recommends migrating tests from react-test-renderer to @testing-library/react or @testing-library/react-native for a modern and well-supported testing experience.

ShallowRenderer no longer exported from react-test-renderer/shallow

The react-test-renderer package no longer exports a shallow renderer at react-test-renderer/shallow. This was previously a repackaging of the react-shallow-renderer package. To continue using the shallow renderer, install the react-shallow-renderer package directly from NPM or Github (github.com/enzymejs/react-shallow-renderer).

Give your agent this brain