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.
- Host: GitHub
- URL: https://github.com/suhdev/react-slot
- Owner: suhdev
- Created: 2019-08-12T10:30:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T06:57:57.000Z (over 3 years ago)
- Last Synced: 2025-03-18T06:26:29.037Z (over 1 year ago)
- Language: TypeScript
- Size: 548 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
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 (
);
}
```