{"ScriptPreparationCode":"function WithUseMemo() {\r\n const [iata, setIata] = React.useState(\u0027test\u0027)\r\n const isValid = React.useMemo(() =\u003E {\r\n return iata.length === 3\r\n }, [iata])\r\n const clickMe = () =\u003E {};\r\n return React.createElement(\u0027button\u0027, {\r\n disabled: !isValid\r\n }, \u0027Click me!\u0027);\r\n}\r\n\r\nfunction WithoutUseMemo() {\r\n const [iata, setIata] = React.useState(\u0027test\u0027)\r\n const isValid = iata.length === 3\r\n const clickMe = () =\u003E {};\r\n return React.createElement(\u0027button\u0027, {\r\n disabled: !isValid\r\n }, \u0027Click me!\u0027);\r\n}","TestCases":[{"Name":"With UseMemo","Code":"ReactDOM.render(React.createElement(WithUseMemo), document.getElementById(\u0027root\u0027))","IsDeferred":false},{"Name":"Without UseMemo","Code":"ReactDOM.render(React.createElement(WithoutUseMemo), document.getElementById(\u0027root\u0027))","IsDeferred":false}]}