Skip to content

Instantly share code, notes, and snippets.

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

hashtagdeveloper96

🏠
Working from home
View GitHub Profile
//create button component
class Button extends React.Component{
handleClick = () =>{
this.props.onClickFunction(this.props.increamentValue);
};
render(){
return (
<button onClick={this.handleClick}>
+{this.props.increamentValue}
</button>
class Solution:
def isHappy(self, n: int) -> bool:
def square_sum(num):
result = 0
while num > 0:
rem = num % 10
result = result + rem * rem
num = num // 10
return result
<input type="checkbox" id="card_01" checked>
<label for="card_01">
<div class="cardWrapper">
<div class="cardRandom"></div>
</div>
</label>
<input type="checkbox" id="card_02" checked>
<label for="card_02">
<div class="cardWrapper">
<div class="cardRandom"></div>