Skip to content

Instantly share code, notes, and snippets.

Vishnu Pradeep thevishnupradeep

Block or report user

Report or block thevishnupradeep

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Sample Redux
/*********************** Imports ***********************/
import React from 'react';
import { connect } from 'react-redux';
import { useDispatch } from 'react-redux';
/********************* End Imports *********************/
/*********************** Toggle Function ***********************/
const Toggle = (props) => {
const isOpen = useSelector(state => state.isOpen);
You can’t perform that action at this time.