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

https://github.com/suhdev/react-slot

A simple library to provide slot support for React apps.
https://github.com/suhdev/react-slot

Last synced: 9 months ago
JSON representation

A simple library to provide slot support for React apps.

Awesome Lists containing this project

README

          

# stickyants-react-slot

A library for React application to support slots. Works in a similar fashion to Vue's slots.

## Usage

```typescript

import * as React from 'react';
import {
SlotsContainer,
Slot,
SlotContent
} from '@stickyants/react-slot';

function MySidebar(){
return (

This is just a test


);
}

function MySubApp(){
return (

This goes in the working area


);
}

function App(){
return (














);
}

```