This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
import { useEffect, useRef, memo } from 'react'; | |
import { createPortal } from 'react-dom'; | |
const Portal = ({ children }) => { | |
// Keeps ref between renders | |
const el = useRef(null); | |
// Create element if empty (for the first render only) | |
if (!el.current) el.current = document.createElement('div'); |
/** | |
* jQuery Plugin: Table of Contents with Smooth Scrolling | |
* @link http://www.1stwebdesigner.com/css/jquery-plugin-smooth-scrolling/ | |
* @author Rochester Oliveira | |
*/ | |
(function($){ | |
$.fn.stoc = function(options) { | |
//Our default options | |
var defaults = { |