algolia / algolia/react-element-to-jsx-string
Allow custom serialisation of prop values
- Dominant language
- JavaScript
- Stars
- 518
- Forks
- 87
- Avg merge
- 3h 56m
- Merged PRs (30d)
- 3
Description
Prop values of type Set are serialised as `foo={[object Set]}`. It would be much more convenient to serialised them in a similar way to the Arrays (i.e. `foo={Set ['one', 'two', 'three']}`).
This could be coded as an extension if custom serialisation of props were supported or as a specific prop serialiser for Set values.
Thanks,
Alberto
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests. Start by locating the serializer that handles Array prop values and inspect how unsupported Set values are formatted; done means Set values no longer render as [object Set] and either receive the requested JSX-like representation or can use the proposed custom serialization extension.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100