airbnb / airbnb/react-with-styles

Decorator shields public methods of a class

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

Description

After decorating a dropdown:

```
@withStyles(style)
export default class UiDropdown
```

I'm no longer able to reference it:

`this.dropdownRef.show()` results in `TypeError: this.dropdownRef.show is not a function`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the withStyles decorator and reproduce the UiDropdown case using this.dropdownRef.show(). Trace how the decorated class is exposed, then verify that the public show method remains callable after decoration.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.