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
namespace Fibonacci; | |
/// <summary> | |
/// The Fibonacci sequence is a sequence of numbers where a number is the sum of the two preceding numbers. | |
/// The first 10 numbers in the Fibonacci sequence are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34. | |
/// </summary> | |
public static class Fibonacci | |
{ | |
/// <summary> | |
/// Fibonacci in a recursive version |
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 from 'react'; | |
import { createContext } from 'react'; | |
import { useSocket } from '../hooks/useSocket' | |
export const SocketContext = createContext(); | |
export const SocketProvider = ({ children }) => { | |
const { socket, online } = useSocket('http://localhost:8080'); |