Skip to content

feat(rendering): Expose createElement#85

Merged
SophieManley03 merged 25 commits intonextfrom
feat/recommend-templating-create-element
Jun 21, 2022
Merged

feat(rendering): Expose createElement#85
SophieManley03 merged 25 commits intonextfrom
feat/recommend-templating-create-element

Conversation

@SophieManley03
Copy link
Copy Markdown
Contributor

This PR exposes createElement and Fragment from Preact.

Summary

We want to remove the complexity of using JSX for our users using plain Javascript. In order to do that in a unify way accross our librairies, we are doing a similar work to the one done on Autocomplete.js.

This PR will be followed by another one that we allow HTML templating.

Comment thread packages/recommend-vdom/package.json Outdated
Comment thread packages/recommend-vdom/package.json Outdated
Comment thread packages/recommend-vdom/src/types/FacetsViewProps.ts Outdated
Comment thread packages/recommend-vdom/src/types/RecommendComponentProps.ts Outdated
@SophieManley03 SophieManley03 force-pushed the feat/recommend-templating-create-element branch 2 times, most recently from 3f8ded1 to 7022f3c Compare June 13, 2022 08:21
@SophieManley03 SophieManley03 force-pushed the feat/recommend-templating-create-element branch from 7022f3c to bcfa781 Compare June 13, 2022 08:26
Comment thread packages/recommend-vdom/src/types/FacetsViewProps.ts Outdated
Comment thread packages/recommend-vdom/src/types/ViewProps.ts Outdated
SophieManley03 and others added 3 commits June 13, 2022 11:59
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
@sarahdayan
Copy link
Copy Markdown
Member

@SophieManley03 For the two suggestions I made you'll need to add imports from Renderer (that's why the type checking is failing). Unfortunately GitHub wouldn't let me suggest at the top of the file 😔

@SophieManley03
Copy link
Copy Markdown
Contributor Author

Thank you Sarah, just did 👌

@SophieManley03 SophieManley03 marked this pull request as ready for review June 13, 2022 13:23
Comment thread packages/recommend-js/src/__tests__/templates.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/templates.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/templates.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/templates.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/templates.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/templates.test.tsx Outdated
Comment thread packages/recommend-vdom/src/types/FacetsViewProps.ts Outdated
@SophieManley03 SophieManley03 force-pushed the feat/recommend-templating-create-element branch from a5e1442 to 11cf12e Compare June 14, 2022 13:24
Comment thread packages/recommend-js/src/__tests__/frequentlyBoughtTogether.test.tsx Outdated
Copy link
Copy Markdown
Member

@sarahdayan sarahdayan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only nitpicks (feel free to apply or not), other than that it looks good to me. Great job!

Comment thread packages/recommend-js/src/__tests__/frequentlyBoughtTogether.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/frequentlyBoughtTogether.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/frequentlyBoughtTogether.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/frequentlyBoughtTogether.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/frequentlyBoughtTogether.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/trendingItems.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/trendingItems.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/trendingItems.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/trendingItems.test.tsx Outdated
Comment thread packages/recommend-js/src/__tests__/trendingItems.test.tsx Outdated
SophieManley03 and others added 2 commits June 21, 2022 08:38
…est.tsx

Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
…est.tsx

Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
SophieManley03 and others added 11 commits June 21, 2022 08:38
…est.tsx

Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
…est.tsx

Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
…est.tsx

Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
@SophieManley03 SophieManley03 merged commit ea6e668 into next Jun 21, 2022
@SophieManley03 SophieManley03 deleted the feat/recommend-templating-create-element branch June 21, 2022 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants