Month: April 2020

Posted in Uncategorized

React@16.9 block `javascript:void(0);`

<a href=”javascript:void(0);”></a> Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you…

Continue Reading
Posted in Uncategorized

Stateless Component: React.forwardRef make defaultProps invalid

When I add React.forwardRef to a stateless component that is already have defaultProps, It make all defaultProps to undefined? React.forwardRef can’t use with defaultProps ?…

Continue Reading
Posted in Uncategorized

ref.current returns null when ref returns current.div. …

Do you want to request a feature or report a bug? Bug What is the current behavior? When accessing ref.current using the useRef hook, it…

Continue Reading
Posted in Uncategorized

Calling setState in the callback of setState prevents input’s value to be updated by onChange

I am reporting a bug Current behavior: Calling setState in the callback of setState to generate dynamic HTML containing inputs prevents input’s value= to be…

Continue Reading
Posted in Uncategorized

Doesn’t support profiler even with latest React version

Do you want to request a feature or report a bug? Bug What is the current behavior? The profiler tab only shows this message even…

Continue Reading
Posted in Uncategorized

useEffect() parent-child cleanup order

Do you want to request a feature or report a bug? Feature What is the current behavior? useEffect() runs the returned cleanup function in the…

Continue Reading
Posted in Uncategorized

SVG sprite icons blink when DOM re-renders

Do you want to request a feature or report a bug? Bug. What is the current behavior? I update state of chechbox from parent and…

Continue Reading
Posted in Uncategorized

Is React.createElement necessary when rendering function components without JSX?

I asked this on Spectrum chat and in the React docs repo (#2110), but haven’t received a thorough explanation. It was suggested to me to…

Continue Reading
Posted in Uncategorized

React dev tools not showing (blank)

i was working with it a while ago but now it will only show nothing in the Components tab. I tried everything, reinstalled or even…

Continue Reading
Posted in Uncategorized

React Hooks don’t work inside function without export default.

Hello, I’m trying to call the useContext hook inside a function and I get the following error . This is the code that I’m trying…

Continue Reading