Open Bug 1867805 Opened 2 years ago Updated 1 year ago

Put react / react-dom for newtab, about:welcome, and (eventually) about:asrouter into a shared location

Categories

(Firefox :: New Tab Page, task, P3)

task

Tracking

()

People

(Reporter: mconley, Unassigned)

References

(Blocks 1 open bug)

Details

about:welcome, about:newtab and the upcoming about:asrouter all use the same instances of react.js and react-dom.js. They don't webpack bundle them, but treat them as externals that are loaded via <script> tags within the host page:

Given this relationship, we should probably move these scripts somewhere for shared scripts, rather than having it live under browser/components/newtab.

I'm tempted to put these under toolkit/content/widgets/vendor, but am definitely open to alternatives.

What do you think, mstriemer?

Flags: needinfo?(mstriemer)

I think it would depend on if we expect to have all of our react pages on the same version of react. That seems like a reasonable place to host a react to do so, but if its an older version of react since newtab code can't update to the latest or something then that may give a false impression that it's up to date and expected to be the de facto react version

Flags: needinfo?(mstriemer)

Tentatively P3/S3'ing this.

Severity: -- → S3
Priority: -- → P3
See Also: → 1618001
You need to log in before you can comment on or make changes to this bug.