This is a simple webapp which renders RASA stories as a graph. See the working demo here. The original app was written in vanilla TS, without React. Your task is to port it to React, as well as to fill out a blank in the code.
- Fork & clone this repo and install with
npm install
- To start a dev server just run
npm start
- You only need to port the code in
graph.tsx
.index.tsx
is already ported to React andstory.ts
only contains logic, no UI. - I suggest you start by rewriting the
renderNode
function as a functional component and work your way down the file. (you don't need to change anything about the tippy related code, just keep the class names) - In the
updateLines
function, make sure to fill out the missing part