decosoftware / decosoftware/deco-ide

[CodeMirror] Pre-Bound Methods and Props

Open
#184 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.8k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

It seems that in JSX without using _this._ in front of a method call, or prop, highlighting is ignored. When working with stateless components, and pre-binding functions, the need for the scope parenting of _this_, is no longer mandatory. We can also see the same behavior in methods, where we would use such syntax with Redux action creators.

![pre-bound](https://cloud.githubusercontent.com/assets/3156278/18738747/252c00c8-8064-11e6-9966-b67b111a0700.png)

I'm pretty sure I'm forgetting another application, and I hope to remember it later.

My curiosity is piqued on this one, since this also applies to props. Highlight anything in between braces in the JSX, and anything with a parens outside of JSX?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.