{"ScriptPreparationCode":"function ComponentWithInlineTernary() {\r\n \tconst bool = true;\r\n \tconst value1 = 1;\r\n \tconst value2 = 2;\r\n\tconst stas = bool ? value1 : value2;\r\n return React.createElement(\u0027button\u0027, {}, stas);\r\n}\r\n\r\nfunction ComponentWithUseMemo() {\r\n \tconst bool = true;\r\n \tconst value1 = 1;\r\n \tconst value2 = 2;\r\n\tconst stas = React.useMemo(() =\u003E {\r\n\t return bool ? value1 : value2;\r\n }, []);\r\n return React.createElement(\u0027button\u0027, {}, stas);\r\n}","TestCases":[{"Name":"ternary","Code":"ReactDOM.render(React.createElement(ComponentWithInlineTernary), document.getElementById(\u0027root\u0027))","IsDeferred":false},{"Name":"usememo","Code":"ReactDOM.render(React.createElement(ComponentWithUseMemo), document.getElementById(\u0027root\u0027))","IsDeferred":false}]}