plotly / plotly/dash

allow explicitly picking which props to render in React components

Open
#2,600 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

Throughout our React components, we use ramda.omit to filter out props that we wish to exclude from being rendered.
We should invert this by using ramda.pick to include the props that we do wish to render.

This will prevent us from accidentally sending props to be rendered in HTML.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by searching the React components for uses of ramda.omit and identify the props currently excluded before rendering. Define the explicit renderable-prop lists for each affected component, then verify that intended HTML props still render and other component props are not passed through.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.