Closed
Description
Nature of issue?
- Refactor / Code quality
Details
The <PreviewFrame />
component needs a lot of props, some of which are very specific, which are passed by the <IDEView />
. Since the component is also used in the <MobileIDEView />
(and futurely in other components, maybe), it's a good idea to make it into a React Container. This has been done to the <Editor />
component, and it helps dry up the code for the Views
.
There are two ways to go about this:
connect
it usingmapStateToProps
andmapDispatchToProps
- Use the
useSelector
anduseDispatch
react-redux hooks.
Metadata
Metadata
Assignees
Labels
No labels