socket context added
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
import React from "react";
|
||||
import React, { useEffect } from "react";
|
||||
import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
|
||||
import RecentActions from "./RecentActions";
|
||||
import Products from "./Products";
|
||||
import TopBar from "./TopBar";
|
||||
import ProductsURL from "./ProductsURL";
|
||||
import { SocketContextValues } from "../context/SocketIOContext";
|
||||
|
||||
export default function HomeSections(){
|
||||
|
||||
const {sendMessage} = SocketContextValues() // Destructures values from socket context
|
||||
|
||||
// useEffect(()=>{
|
||||
// sendMessage('Hello socket', '2020aklksod')
|
||||
// },[])
|
||||
|
||||
return <>
|
||||
{/* <div className="row">
|
||||
<div className="col-md-12 m-b-30">
|
||||
|
||||
Reference in New Issue
Block a user