1.3.9 • Published 4 years ago

@ehne/preact-slotx v1.3.9

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

basically just reimplements preact-slots, for Preact X

import { SlotProvider, Slot, SlotContent } from '@ehne/preact-slotx'
 
render(
    <SlotProvider>
        <Slot name="foo">
            Some Fallback Content
        </Slot>
        <SlotContent name="foo">
            Replacement Content
        </SlotContent>
    </SlotProvider>
)

requires htm and preact

installing:

through npm:

$ npm install @ehne/preact-slotx

by copying and pasting:

  • just copy the file in src/index.js into your code somewhere.
  • remove exports from the functions if you aren't keeping preact slot x as a seperate file.

made by darcy lugt-falk

logo background image: galaxy effect png 3

1.3.9

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago