An open API service indexing awesome lists of open source software.

https://github.com/mfellner/react-context-portal

Created with CodeSandbox
https://github.com/mfellner/react-context-portal

Last synced: 2 months ago
JSON representation

Created with CodeSandbox

Awesome Lists containing this project

README

        

# Render React elements through a "context portal"

Based on @visualglitch91's [tweet](https://twitter.com/visualglitch91/status/1363135740109062146).

Explanation:

```jsx
// Provides page header context:


{/* Uses page header context. */}

{/* Renders children into the context state. */}
Will render in the header.

```