Skip to content

Instantly share code, notes, and snippets.

View Junglecrew's full-sized avatar
🏠
Working from home

Dmitri Petrov Junglecrew

🏠
Working from home
View GitHub Profile
@Junglecrew
Junglecrew / on-jsx.markdown
Last active March 11, 2018 23:59 — forked from chantastic/on-jsx.markdown
JSX, a year in

A component like this would be rejected in code review for having both a presentation and data concern:

// CommentList.js
import React from "react";

class CommentList extends React.Component {
  constructor() {
    super();
    this.state = { comments: [] }