Skip to content

Instantly share code, notes, and snippets.

@ratbeard
Created September 25, 2019 21:26
Show Gist options
  • Save ratbeard/5589bc1db16317e01566110b83f0cc2a to your computer and use it in GitHub Desktop.
Save ratbeard/5589bc1db16317e01566110b83f0cc2a to your computer and use it in GitHub Desktop.
//a
<SectionsEditor
assetState={assetState}
dispatchToAssetState={dispatchToAssetState}
key={index}
section={section}
sectionIndex={index}
canAddSection={canAddSection}
canMoveSection={canMoveSection}
canRemoveSection={canRemoveSection}
canAddQuestion={canAddQuestion}
/>,
// b
<SectionsEditor
key={sectionIndex}
{...{
assetState,
canAddSection,
canMoveSection,
canRemoveSection,
canAddQuestion,
section,
sectionIndex,
dispatchToAssetState,
}}
/>,
// c
<SectionsEditor
key={sectionIndex}
{...{ assetState, canAddSection, canMoveSection, canRemoveSection, canAddQuestion, section, sectionIndex, dispatchToAssetState, }}
/>,
// d
<SectionsEditor {...{
key: sectionIndex,
canAddSection, canMoveSection, canRemoveSection, canAddQuestion,
assetState, section, sectionIndex, dispatchToAssetState
}} />,
// e
<SectionsEditor
{...{
key: sectionIndex,
canAddSection, canMoveSection, canRemoveSection, canAddQuestion,
assetState, section, sectionIndex, dispatchToAssetState
}}
/>,
@bradgreens
Copy link

could try

// gfy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment