dunglas / dunglas/react-esi

How to get and serve HTML fragments?

Open
#9 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
683
Forks
30
PR merge metrics
No merged PRs in 30d

Description

I was wondering how can I render an HTML fragment which is not a component...

For example:
Let's say that `example.com/esi-fragment` is serving

```

content

```

So, as per ESI i can do something like this in an example.com page

```

```

And I should see the div rendered in my page.

In all the examples I see online I only can see react components rendered... Which is working, but not really what I want to do.... Is there something I'm getting wrong?

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.