reactjs / reactjs/react.dev

Host codemods on the website

Open
#12 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

difficulty: medium discussion type: website
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

It would be nice to provide a REPL for React codemods on the website, particular for ones like
createClass or PropTypes. This would be handy for one-offs like converting StackOverflow answers or fiddles and would also introduce people to the idea of codemodding in a playful way. The REPL could also include instructions for how to run the codemods on the command line.

These codemods live in reactjs/react-codemod and are published to NPM under the name react-codemod. Seems like we could add the NPM module to the website's dependencies and then embed a few of them into a new REPL component.

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 reviewing the website's dependency setup and the reactjs/react-codemod project, including the react-codemod NPM package. Done means the website provides a REPL for selected codemods such as createClass or PropTypes and includes instructions for running them from the command line.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
tooling, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.