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
// the provider component (I usually have a folder called 'contexts') | |
import React, { useState, useEffect, createContext } from 'react' | |
export const FancyContext = createContext({ fancyThing: null, setFancyThing: () => {} }) | |
export function FancyProvider({ children }) { | |
const [fancy, setFancy] = useState({}) | |
useEffect(() => { | |
// get the data you want, however you want (this is pseudocode) |
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
{"version":1,"resource":"file:///Users/mercedesbernard/Git/convertkit/config/database.yml","entries":[{"id":"yZVd.yml","timestamp":1681328147029},{"id":"vIiP.yml","timestamp":1681328703389},{"id":"akt6.yml","timestamp":1681747112000}]} |
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
using EPiServer.Core; | |
using EPiServer.Shell; | |
using EPiServer.Shell.Services.Rest; | |
using SampleEditors.Models.Media; | |
using System; | |
using System.Collections.Generic; | |
namespace SampleEditors.Models.UIDescriptors | |
{ | |
[UIDescriptorRegistration] |