[dx] Update NoRefAccessInRender error messages

ghstack-source-id: a5623aa4f29e15c89d2dfbe855bab9843e240a8a
Pull Request resolved: https://github.com/facebook/react-forget/pull/2862
This commit is contained in:
Joe Savona
2024-04-18 09:21:23 -07:00
parent 8c8bd00c04
commit e3d0f4bce8
@@ -120,7 +120,7 @@ function validateNoRefAccessInRenderImpl(
errors.push({
severity: ErrorSeverity.InvalidReact,
reason:
"This function accesses a ref, which not be accessed during render. (https://react.dev/reference/react/useRef)",
"This function accesses a ref value (the `current` property), which may not be accessed during render. (https://react.dev/reference/react/useRef)",
loc: callee.loc,
description: `Function ${printPlace(callee)} accesses a ref`,
suggestions: null,