News for hackers. Stuff that matters.

ozanyurtsever

A component may want to make assumptions about its children to satisfy layout constraints.

To satisfy this need in one of my projects, I have built a very simple custom hook and then decided to publish it publicly.

Here is the thread that describes the problem further: https://github.com/microsoft/TypeScript/issues/13618

I hope it can be helpful for someone. I also would like to hear if my approach has been already implemented by other repos, because I couldn't find any, back in time.

Thanks.

Re:Rich Text Editor for React on Thursday June 23, 2022 @02:29AM (#31845791)
Hello, as it is in very early phase, most of the time you cannot find a sufficient amount of information or no information from the docs about a provided API. However, I have used lexical playground to bootstrap this project, so it was easier to convert it to a separate react component package.
Re:Rich Text Editor for React on Tuesday June 21, 2022 @07:20AM (#31822620)
Hello Guys,

Until this year, draft.js was one of the mainly used libraries out there for building web based text editors, and there are lots of component libraries for React based on draft.js. However, the development team(which is facebook) has announced that the project is not under development anymore, since they have started a brand new project, which is Lexical. Lexical is a framework to build text editors and is under early development currently. By using Lexical, I have built a new component library that comes with a ready to use rich text editor. It is under very early development as well, as I am trying to make it more modular and flexible with each improvement. I hope this project can help some startups that needs to implement a highly functional text editor to their projects. All of the support(like stars) and contribution to the project is very much welcomed.

Thanks.