airbnb / airbnb/react-with-styles

Benefit of running inline through css?

Open
#96 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.7k
Forks
101
PR merge metrics
No merged PRs in 30d

Description

In the readme, you have this example

`

`

What benefit is providing by running the plain object through the `css` function?

From looking at the code, it just passes these objects into the `style` prop. But why not do this directly? Wouldn't that be more performant?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the README example and the implementation of the css function referenced there; compare its use with passing the object directly to React's style prop. Done means documenting the rationale and any relevant performance considerations clearly near the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, react
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.