Skip to content

Instantly share code, notes, and snippets.

View enheit's full-sized avatar
❤️
you

Roman Mahotskyi enheit

❤️
you
View GitHub Profile
@enheit
enheit / console-log-random-message.code-snippets
Created November 10, 2018 17:57
Print message to the console using file name and line number as a prefix
{
"Console log decorator": {
"prefix": "cl",
"scope": "javascript,typescript",
"body": ["console.log('($TM_FILENAME:$TM_LINE_NUMBER)', $0);"],
"description": "Print message to the console using file name and line number as a prefix"
}
}
@enheit
enheit / FL11_React_Feedback.md
Last active September 6, 2019 10:53
FL11 React / JSX Homework feedback

Critical

The application contains critical errors that lead to application crash

Direct state modification. The state should be updated via this.setState function, don't update state by using dirrect assignment or modification.

Bad

componentDidMount() {
 this.state.emoji = this.state.emoji.filter(item => item.id !== id);