This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
class MyComponent extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
gretting: "Hi" | |
}; | |
this.handleButtonClick = this.handleButtonClick.bind(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @see in https://stackoverflow.com/a/6460748 | |
* @param user Information about User | |
* @param user.firstName The first name of user | |
* @param user.lastName the last name of user | |
**/ | |
const logIn = userInfo => { | |
doLogIn(userInfo.name, userInfo.email); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from graphene_django import DjangoObjectType | |
from graphene import relay, AbstractType | |
from graphene_django.filter import DjangoFilterConnectionField | |
from app.models import Leather | |
from django_filters import FilterSet, OrderingFilter | |
class LeatherFilterSet(FilterSet): | |
order_by = OrderingFilter( | |
fields=( | |
('created', 'created'), |