You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 using mapStateToProps and mapDispatchToProps
Use the useSelector and useDispatch react-redux hooks.
The text was updated successfully, but these errors were encountered:
Nature of issue?
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 theViews
.There are two ways to go about this:
connect
it usingmapStateToProps
andmapDispatchToProps
useSelector
anduseDispatch
react-redux hooks.The text was updated successfully, but these errors were encountered: