Using state within your React function components

Image for post
Image for post
https://unsplash.com/photos/yD5rv8_WzxA

What is a Hook?

What is useState?

Using state within a regular React Class Component:

class MyClass extends React.Component {
constructor(props) {
super(props);
this.state = {
name: 'Medium'
};
}

Using State within a React Function Component:

import React, { useState } from 'react';function MyFunction() {
const [name, setName] = useState('Medium')…


Part 4 of a series looking behind the scenes of the worlds most popular cryptocurrency

Image for post
Image for post
Photo by Philipp Katzenberger on Unsplash

4 — SHA-256


Part 3 of a series looking behind the scenes of the worlds most popular cryptocurrency

Image for post
Image for post
Photo by Chris Barbalis on Unsplash

3 — Digital Keys

3.1 — Public and Private Keys


Part 1 & 2 of a series looking behind the scenes of the worlds most popular cryptocurrency

Image for post
Image for post
Photo by Harrison Kugler on Unsplash

1— What is a cryptocurrency?

2 — The Blockchain


Measuring the mistakes

Image for post
Image for post
Photo by NeONBRAND on Unsplash


Finding the sweet spot

Image for post
Image for post
Photo by Diogo Nunes on Unsplash

About

Toby Chitty

Python/Web Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store