It was too much research for me to add a Color Picker to my Text Editor until I decided to stick to basics.
A simple input tag and React.useRef made it work just on the first go.
Implementation
ColorPicker.js
import React, { useState } from 'react';
...