diff --git a/test/React__test.re b/test/React__test.re index 8b26c8339..f80e63dd4 100644 --- a/test/React__test.re +++ b/test/React__test.re @@ -357,4 +357,54 @@ describe("React", () => { /* We catch the exception here to not populate the error to the toplevel */ () }; + + test( + "Memo and normal components rendering with equal and different props", () => { + let container = getContainer(container); + let root = ReactDOM.Client.createRoot(container); + + module Normal = { + let renders = ref(0); + + [@react.component] + let make = (~a) => { + renders := renders^ + 1; +