Skip to content

Instantly share code, notes, and snippets.

View amanjagdev's full-sized avatar
:octocat:
Exploring

Aman Kumar Jagdev amanjagdev

:octocat:
Exploring
View GitHub Profile

Local Vendors Online Selling Products


Ways to Sell Products online

Amazon

  • Complicated Process
  • Small vendors had problem with it
@amanjagdev
amanjagdev / FunctionalComponent.js
Created April 21, 2020 08:55
React Hooks Description : Functional Component
import React, { useState } from "react";
const CounterFuncBased = () => {
const [count, setCount] = useState(0);
const updateCounter = () => {
setCount(count + 1);
};
return (
<div>
<p>You have clicked the button : {count} times!</p>
@amanjagdev
amanjagdev / ClassBasedComponent.js
Last active April 21, 2020 08:54
React Hooks Introduction
import React, { Component } from "react";
class CounterClassBased extends Component {
constructor(props) {
super(props);
this.state = {
count: 0,
};
this.updateCounter = this.updateCounter.bind(this);
}