issues
search
eatdrinkhealthy
/
edh-app
The Eat Drink Healthy web (and tentatively mobile / cordova) app created with Meteor and React.
0
stars
0
forks
source link
Miscellaneous Dev Items / Questions...
#14
Closed
stevenjmarsh
closed
7 years ago
stevenjmarsh
commented
7 years ago
Dev Items / Questions
[x] source code file extension (.js vs. .jsx -using .jsx overkill/unnecessary)?
[x] test file dir
__tests__
,
tests
pros / cons
[x] discuss
performance
and code maintenance differences between: css, style={js obj}, aphrodite, glamor, styled-component
[x] help with loading css (& maybe less) in storybook (& explicit comparison / use in jest snapshot?)
[x] help with loading font via glamor (currently using less @import url())
Notes on styling
style={js obj}
works nicely (explicit) with snapshot, shows css differences in snapshot
saw some
rumblings
of inline css slower
inline style packages
performance comparison
fyi, when using glamor, it sets a component's className to an object, not a string, so enzyme hasClass doesn't work by default
Dev Items / Questions
__tests__
,tests
pros / consNotes on styling
style={js obj}
works nicely (explicit) with snapshot, shows css differences in snapshot