Skip to content

Instantly share code, notes, and snippets.

View flogaribal's full-sized avatar

Florian GARIBAL flogaribal

View GitHub Profile
@flogaribal
flogaribal / Components.js
Last active February 16, 2022 07:48
React MarkDown Editor based on react-slate. Pretty new to React, might not follow best practices, open to feedbacks !
import React from "react";
import ReactDOM from "react-dom";
import { Editor, Path, Transforms } from "slate";
export const MDButton = React.forwardRef(({ className, active, reversed, ...props }, ref) => {
const button = <span
{...props}
ref={ref}
className={`${className || ''}`}
style={{

Keybase proof

I hereby claim:

  • I am flogaribal on github.
  • I am flogaribal (https://keybase.io/flogaribal) on keybase.
  • I have a public key ASAxbccIVBV55x--Ma7tZNXTQqio9u_qQTXt94JqLRpwYAo

To claim this, I am signing this object: