Доклад повествует о том, что такое "реконсиляция" в React, какой путь проходит компонент от кода до отрисовки на экран и как написать свой собственный рендерер на примере отрисовки React-компонентов в Figma.
Репозиторий содержит материалы доклада, исходный код демо и дополнительные материалы по теме.
-
Установить Figma
-
Склонировать репозиторий
-
Перейти в папку с репозиторием и установить все зависимости, например, используя
yarn -
Запустить стартовый скрипт:
yarn run start
или
npm run start
-
Добавить плагин в Figma:
- Создать новый документ
Plugins->Development->New plugin...- Нажмите
Link existing pluginи укажите путь кmanifest.json, находящемуся в корне папки с репозиторием
-
Запустите:
Plugins->Development->Talk – Custom renderer
- React Docs: Reconciliation
- React Docs: Components, Elements and Instances
- Lin Clark – A Cartoon Intro to Fiber – React Conf 2017
- Maxim Koretskyi – Inside Fiber: in-depth overview of the new reconciliation algorithm in React
- Maxim Koretskyi – The how and why on React’s usage of linked list in Fiber to walk the component’s tree
- Rodrigo Pombo – Building your own React
- React Reconciler package
- Atul R – Beginners guide to Custom React Renderers
- Manas Jayanth – Learn how React Reconciler package works by building your own lightweight React DOM
- Sophie Alpert – Building a Custom React Renderer
- Aziz Khambati – Building an Async React Renderer with Diffing in Web Worker