#The React Flow parent container needs a width and a height to render the graph

1 messages · Page 1 of 1 (latest)

boreal lintel
#
   return (
        <div style={{ width: 800, height: 800 }}>
            <ReactFlowProvider>
#

i set the width and height as the guide said to but i still don't see a viewport

fringe nest
#

Tried moving the div inside <ReactFlowProvider>?

#

Now your components should be:

   return (
      <ReactFlowProvider>
        <div style={{ width: 800, height: 800 }}>
            <ReactFlow>