react / react/yoga

How to set or change the order of children?

Open
#1,037 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request Question
Dominant language
C++
Stars
18.9k
Forks
1.6k
Avg merge
1m
Merged PRs (30d)
1

Description

When creating nodes you can pass the index, but is there a way to change the order of child nodes, similar to the CSS order property?

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 reading the node-creation API and its child-index handling, then compare that behavior with the CSS order property referenced in the issue. Confirm whether child order can be changed after creation and define the expected behavior before selecting an implementation path; done means the requested ordering behavior is supported and covered by a focused test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.