fix: updated components to use single quotes in jsx #383

Merged
bones7242 merged 3 commits from single-quote-jsx into master 2018-03-08 18:30:54 +01:00
bones7242 commented 2018-03-08 05:33:02 +01:00 (Migrated from github.com)

Per discussion in slack, we needed to decide on single or double quotes for html elements in the jsx. I like single quotes because it reminds me that it is jsx, and thus other jsx rules need to be followed (e.g. using className rather than class). This PR finishes converting the components to use single quotes. I also moved all connected components into the containers folder.

Per discussion in slack, we needed to decide on single or double quotes for html elements in the jsx. I like single quotes because it reminds me that it is jsx, and thus other jsx rules need to be followed (e.g. using `className` rather than `class`). This PR finishes converting the components to use single quotes. I also moved all connected components into the `containers` folder.
kauffj (Migrated from github.com) reviewed 2018-03-08 05:33:02 +01:00
neb-b (Migrated from github.com) approved these changes 2018-03-08 06:16:26 +01:00
neb-b (Migrated from github.com) left a comment

I know this isn't the purpose of the PR, but you should avoid binding functions inside the render function.

https://reactjs.org/docs/handling-events.html

Also why the change to xxx/index? Still works the same way without it.

I know this isn't the purpose of the PR, but you should avoid binding functions inside the render function. https://reactjs.org/docs/handling-events.html Also why the change to `xxx/index`? Still works the same way without it.
@ -3,2 +3,4 @@
class ExpandingTextarea extends Component {
constructor (props) {
super(props);
neb-b (Migrated from github.com) commented 2018-03-08 06:08:07 +01:00

You should bind handlers in the component constructor instead of inside the render function

You should bind handlers in the component constructor instead of inside the render function
bones7242 (Migrated from github.com) reviewed 2018-03-08 18:30:41 +01:00
@ -3,2 +3,4 @@
class ExpandingTextarea extends Component {
constructor (props) {
super(props);
bones7242 (Migrated from github.com) commented 2018-03-08 18:30:41 +01:00

The xxx/index was an accident; my IDE attempts to update paths when I move files between folders. I fixed the handler binding as well. Thanks!

The `xxx/index` was an accident; my IDE attempts to update paths when I move files between folders. I fixed the handler binding as well. Thanks!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/spee.ch#383
No description provided.