https://github.com/motion/gloss-docs
Documentation for Gloss
https://github.com/motion/gloss-docs
Last synced: 8 months ago
JSON representation
Documentation for Gloss
- Host: GitHub
- URL: https://github.com/motion/gloss-docs
- Owner: motion
- Created: 2019-08-12T19:58:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T20:42:50.000Z (over 3 years ago)
- Last Synced: 2025-01-16T08:18:44.528Z (over 1 year ago)
- Language: TypeScript
- Size: 4.77 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TODO
- don't memo the whole gloss view, instead:
- memo the work inside the view
- why? lots of views take children, so memo does nothing
- plus we can eventually memo things really smart, handling the various object syntax like boxShadow={{ }}
# gloss 💅
usage:
full-featured example:
```js
import React from 'react'
import ReactDOM from 'react-dom'
import Icon from './icon'
import Popover from './popover'
const LINE_HEIGHT = 30
ReactDOM.render(
,
document.querySelector('#app'),
)
```