Skip to content

Instantly share code, notes, and snippets.

View raphael-leger's full-sized avatar
🇫🇷
Lead Full Stack Developer

Raphaël Léger raphael-leger

🇫🇷
Lead Full Stack Developer
View GitHub Profile
@raphael-leger
raphael-leger / lazyWithRetry.js
Last active April 17, 2024 17:51
React LazyWithRetry
import { lazy } from 'react';
const lazyWithRetry = (componentImport) =>
lazy(async () => {
const pageHasAlreadyBeenForceRefreshed = JSON.parse(
window.localStorage.getItem(
'page-has-been-force-refreshed'
) || 'false'
);
@raphael-leger
raphael-leger / RemoveButtonRenderer.jsx
Last active February 5, 2021 10:14
React and tui.grid : how to remove a row
import React from 'react';
import { render } from 'react-dom';
class RemoveButtonRenderer {
element;
constructor(props) {
this.element = document.createElement('div');