Skip to content

Commit

Permalink
feat: ContextMap replaced with ComponentApi
Browse files Browse the repository at this point in the history
  • Loading branch information
ncpa0cpl committed Jul 9, 2023
1 parent c7fb607 commit e21d6a3
Show file tree
Hide file tree
Showing 11 changed files with 308 additions and 117 deletions.
16 changes: 16 additions & 0 deletions __tests__/html-parser/__snapshots__/render-to-html.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,22 @@ exports[`renderToHTML should correctly parse async components 1`] = `
</html>"
`;
exports[`renderToHTML should correctly perform sub renders async render rendered computer can access the context defined on the parent 1`] = `
"<div class=\\"main\\">
<div><div>async foo</div><div>async foo</div><div>async bar</div></div>
</div>"
`;
exports[`renderToHTML should correctly perform sub renders async render renders a simple component 1`] = `"<div><div>Hello World!</div></div>"`;
exports[`renderToHTML should correctly perform sub renders sync render rendered computer can access the context defined on the parent 1`] = `
"<div class=\\"main\\">
<div><div>foo</div><div>foo</div><div>bar</div></div>
</div>"
`;
exports[`renderToHTML should correctly perform sub renders sync render renders a simple component 1`] = `"<div><div>Hello World!</div></div>"`;
exports[`renderToHTML should correctly render jsx with arrays in between elements 1`] = `
"<div>
<h1>Header</h1>
Expand Down
Loading

0 comments on commit e21d6a3

Please sign in to comment.