Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markshust/meteor-radium
https://github.com/markshust/meteor-radium
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/markshust/meteor-radium
- Owner: markshust
- Created: 2015-08-18T17:54:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-06T17:36:00.000Z (about 9 years ago)
- Last Synced: 2024-05-02T00:46:37.453Z (8 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# markoshust:radium
## Add Radium to Meteor
meteor add markoshust:radium
Uses official `react` package from Meteor.
To learn how to use Radium, see the official repo docs: https://github.com/FormidableLabs/radium
From the docs:
> Usage
> Start by adding the @Radium decorator to your component class. Alternatively, wrap Radium() around your component, like module.exports = Radium(Component), or Component = Radium(Component), which works with classes, createClass, and stateless components (functions that take props and return a ReactElement). Then, write a style object as you normally would with inline styles, and add in styles for interactive states and media queries. Pass the style object to your component via style={...} and let Radium do the rest!
Since Meteor doesn't yet support ES6 decorators, you need to wrap your methods in `Radium()`.