preact icon indicating copy to clipboard operation
preact copied to clipboard

Adapt to React api: add context argument to compat/Children map api

Open ParSal123 opened this issue 2 years ago • 0 comments

React's children api map function supports a "context" argument that we don't. Fixes https://github.com/preactjs/preact/issues/2644.

Based mostly on #2645.

There was a problem though: When I ran npm run test:karma, it didn't test Children.test.js. Even the pipeline on the forked project didn't run Children.test.js. I couldn't figure it out. Don't know if this is an issue or just misconfiguration.

ParSal123 avatar Jan 08 '23 19:01 ParSal123