Skip to content

Commit 27e8e5a

Browse files
authored
Merge pull request #41 from reactjs/sync-5d2f7105
2 parents 74d2310 + 919c9f2 commit 27e8e5a

File tree

9 files changed

+42
-23
lines changed

9 files changed

+42
-23
lines changed

public/images/team/noahlemen.jpg

330 KB
Loading

src/components/Layout/Footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export function Footer() {
333333
<FooterLink href="https://opensource.fb.com/legal/terms/">
334334
Terms
335335
</FooterLink>
336-
<div className="flex flex-row mt-8 gap-x-2">
336+
<div className="flex flex-row items-center mt-8 gap-x-2">
337337
<ExternalLink
338338
aria-label="React on Facebook"
339339
href="https://www.facebook.com/react"

src/components/MDX/ErrorDecoder.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ function replaceArgs(
1818
/**
1919
* Sindre Sorhus <https://sindresorhus.com>
2020
* Released under MIT license
21-
* https://github.com/sindresorhus/linkify-urls/blob/edd75a64a9c36d7025f102f666ddbb6cf0afa7cd/index.js#L4C25-L4C137
21+
* https://github.com/sindresorhus/linkify-urls/blob/b2397096df152e2f799011f7a48e5f73b4bf1c7e/index.js#L5C1-L7C1
2222
*
2323
* The regex is used to extract URL from the string for linkify.
2424
*/
25-
const urlRegex =
26-
/((?<!\+)https?:\/\/(?:www\.)?(?:[-\w.]+?[.@][a-zA-Z\d]{2,}|localhost)(?:[-\w.:%+~#*$!?&/=@]*?(?:,(?!\s))*?)*)/g;
25+
const urlRegex = () =>
26+
/((?:https?(?::\/\/))(?:www\.)?(?:[a-zA-Z\d-_.]+(?:(?:\.|@)[a-zA-Z\d]{2,})|localhost)(?:(?:[-a-zA-Z\d:%_+.~#!?&//=@]*)(?:[,](?![\s]))*)*)/g;
2727

2828
// When the message contains a URL (like https://fb.me/react-refs-must-have-owner),
2929
// make it a clickable link.
3030
function urlify(str: string): React.ReactNode[] {
31-
const segments = str.split(urlRegex);
31+
const segments = str.split(urlRegex());
3232

3333
return segments.map((message, i) => {
3434
if (i % 2 === 1) {

src/content/community/acknowledgements.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ We'd like to recognize a few people who have made significant contributions to R
3535
* [Joe Critchley](https://github.com/joecritch)
3636
* [Jeff Morrison](https://github.com/jeffmo)
3737
* [Luna Ruan](https://github.com/lunaruan)
38+
* [Kathryn Middleton](https://github.com/kmiddleton14)
3839
* [Keyan Zhang](https://github.com/keyz)
3940
* [Marco Salazar](https://github.com/salazarm)
4041
* [Mengdi Chen](https://github.com/mondaychen)
@@ -46,6 +47,7 @@ We'd like to recognize a few people who have made significant contributions to R
4647
* [Philipp Spiess](https://github.com/philipp-spiess)
4748
* [Rachel Nabors](https://github.com/rachelnabors)
4849
* [Robert Zhang](https://github.com/robertzhidealx)
50+
* [Samuel Susla](https://github.com/sammy-SC)
4951
* [Sander Spies](https://github.com/sanderspies)
5052
* [Sasha Aickin](https://github.com/aickin)
5153
* [Sean Keegan](https://github.com/seanryankeegan)

src/content/community/conferences.md

+8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ Do you know of a local React.js conference? Add it here! (Please keep the list c
1111
## Upcoming Conferences {/*upcoming-conferences*/}
1212

1313
### React Summit 2024 {/*react-summit-2024*/}
14+
<<<<<<< HEAD
1415

16+
=======
17+
>>>>>>> 5d2f7105bd6374e465b8bdce8efceaeb8f01c937
1518
June 14 & 18, 2024. In-person in Amsterdam, Netherlands + remote (hybrid event)
1619

1720
[Website](https://reactsummit.com/) - [Twitter](https://twitter.com/reactsummit) - [Videos](https://portal.gitnation.org/)
@@ -28,6 +31,11 @@ April 19 - 20, 2024. In-person in Miami, FL, USA
2831

2932
[Website](https://reactmiami.com/) - [Twitter](https://twitter.com/ReactMiamiConf)
3033

34+
### Epic Web Conf 2024 {/*epic-web-2024*/}
35+
April 10 - 11, 2024. In-person in Park City, UT, USA
36+
37+
[Website](https://www.epicweb.dev/conf) - [YouTube](https://www.youtube.com/@EpicWebDev)
38+
3139
### App.js Conf 2024 {/*appjs-conf-2024*/}
3240

3341
May 22 - 24, 2024. In-person in Kraków, Poland + remote

src/content/community/team.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ Current members of the React team are listed in alphabetical order below.
4242
Josh majored in Mathematics and discovered programming while in college. His first professional developer job was to program insurance rate calculations in Microsoft Excel, the paragon of Reactive Programming which must be why he now works on React. In between that time Josh has been an IC, Manager, and Executive at a few startups. outside of work he likes to push his limits with cooking.
4343
</TeamMember>
4444

45-
<TeamMember name="Kathryn Middleton" permalink="kathryn-middleton" photo="/images/team/kathryn-middleton.jpg" github="kmiddleton14" twitter="kmiddleton14" title="Engineering Manager at Meta">
46-
Kathryn initially discovered web development when she wanted to make her myspace page look cool. She ended up majoring in Computer Science, and quickly became a huge fan of React building features on the Instagram.com team. Outside of work she loves playing pingpong, teaching spin classes, and going plant shopping.
47-
</TeamMember>
48-
4945
<TeamMember name="Lauren Tan" permalink="lauren-tan" photo="/images/team/lauren.jpg" github="poteto" twitter="potetotes" threads="potetotes" personal="no.lol" title="Engineer at Meta">
5046
Lauren’s programming career peaked when she first discovered the `<marquee>` tag. She’s been chasing that high ever since. When she’s not adding bugs into React, she enjoys dropping cheeky memes in chat, and playing all too many video games with her partner, and her dog Zelda.
5147
</TeamMember>
@@ -62,12 +58,12 @@ Current members of the React team are listed in alphabetical order below.
6258
Mofei started programming when she realized it can help her cheat in video games. She focused on operating systems in undergrad / grad school, but now finds herself happily tinkering on React. Outside of work, she enjoys debugging bouldering problems and planning her next backpacking trip(s).
6359
</TeamMember>
6460

65-
<TeamMember name="Rick Hanlon" permalink="rick-hanlon" photo="/images/team/rickhanlonii.jpg" github="rickhanlonii" twitter="rickhanlonii" threads="rickhanlonii" personal="rickhanlon.codes" title="Engineer at Meta">
66-
Ricky majored in theoretical math and somehow found himself on the React Native team for a couple years before joining the React team. When he's not programming you can find him snowboarding, biking, climbing, golfing, or closing GitHub issues that do not match the issue template.
61+
<TeamMember name="Noah Lemen" permalink="noah-lemen" photo="/images/team/noahlemen.jpg" github="noahlemen" twitter="noahlemen" threads="noahlemen" personal="noahle.men" title="Engineer at Meta">
62+
Noah’s interest in UI programming sparked during his education in music technology at NYU. At Meta, he's worked on internal tools, browsers, web performance, and is currently focused on React. Outside of work, Noah can be found tinkering with synthesizers or spending time with his cat.
6763
</TeamMember>
6864

69-
<TeamMember name="Samuel Susla" permalink="samuel-susla" photo="/images/team/sam.jpg" github="sammy-SC" twitter="SamuelSusla" threads="samuelsusla" title="Engineer at Meta">
70-
Samuel’s interest in programming started with the movie Matrix. He still has Matrix screen saver. Before working on React, he was focused on writing iOS apps. Outside of work, Samuel enjoys playing beach volleyball, squash, badminton and spending time with his family.
65+
<TeamMember name="Rick Hanlon" permalink="rick-hanlon" photo="/images/team/rickhanlonii.jpg" github="rickhanlonii" twitter="rickhanlonii" threads="rickhanlonii" personal="rickhanlon.codes" title="Engineer at Meta">
66+
Ricky majored in theoretical math and somehow found himself on the React Native team for a couple years before joining the React team. When he's not programming you can find him snowboarding, biking, climbing, golfing, or closing GitHub issues that do not match the issue template.
7167
</TeamMember>
7268

7369
<TeamMember name="Sathya Gunasekaran " permalink="sathya-gunasekaran" photo="/images/team/sathya.jpg" github="gsathya" twitter="_gsathya" threads="gsathya.03" title="Engineer at Meta">

src/content/learn/adding-interactivity.md

-2
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,6 @@ Arrays are another type of mutable JavaScript objects you can store in state and
646646
```js
647647
import { useState } from 'react';
648648

649-
let nextId = 3;
650649
const initialList = [
651650
{ id: 0, title: 'Big Bellies', seen: false },
652651
{ id: 1, title: 'Lunar Landscape', seen: false },
@@ -714,7 +713,6 @@ If copying arrays in code gets tedious, you can use a library like [Immer](https
714713
import { useState } from 'react';
715714
import { useImmer } from 'use-immer';
716715

717-
let nextId = 3;
718716
const initialList = [
719717
{ id: 0, title: 'Big Bellies', seen: false },
720718
{ id: 1, title: 'Lunar Landscape', seen: false },

src/content/learn/thinking-in-react.md

+20-6
Original file line numberDiff line numberDiff line change
@@ -484,12 +484,26 @@ function FilterableProductTable({ products }) {
484484
485485
Inside the `SearchBar`, you will add the `onChange` event handlers and set the parent state from them:
486486
487-
```js {5}
488-
<input
489-
type="text"
490-
value={filterText}
491-
placeholder="Search..."
492-
onChange={(e) => onFilterTextChange(e.target.value)} />
487+
```js {4,5,13,19}
488+
function SearchBar({
489+
filterText,
490+
inStockOnly,
491+
onFilterTextChange,
492+
onInStockOnlyChange
493+
}) {
494+
return (
495+
<form>
496+
<input
497+
type="text"
498+
value={filterText}
499+
placeholder="Search..."
500+
onChange={(e) => onFilterTextChange(e.target.value)}
501+
/>
502+
<label>
503+
<input
504+
type="checkbox"
505+
checked={inStockOnly}
506+
onChange={(e) => onInStockOnlyChange(e.target.checked)}
493507
```
494508
495509
Now the application fully works!

src/content/reference/react-dom/hooks/useFormState.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `useFormState` Hook is currently only available in React's Canary and experi
1414
`useFormState` is a Hook that allows you to update state based on the result of a form action.
1515

1616
```js
17-
const [state, formAction] = useFormState(fn, initialState);
17+
const [state, formAction] = useFormState(fn, initialState, permalink?);
1818
```
1919
2020
</Intro>
@@ -25,7 +25,7 @@ const [state, formAction] = useFormState(fn, initialState);
2525
2626
## Reference {/*reference*/}
2727
28-
### `useFormState(action, initialState)` {/*useformstate*/}
28+
### `useFormState(action, initialState, permalink?)` {/*useformstate*/}
2929
3030
{/* TODO T164397693: link to actions documentation once it exists */}
3131
@@ -59,6 +59,7 @@ If used with a Server Action, `useFormState` allows the server's response from s
5959
6060
* `fn`: The function to be called when the form is submitted or button pressed. When the function is called, it will receive the previous state of the form (initially the `initialState` that you pass, subsequently its previous return value) as its initial argument, followed by the arguments that a form action normally receives.
6161
* `initialState`: The value you want the state to be initially. It can be any serializable value. This argument is ignored after the action is first invoked.
62+
* **optional** `permalink`: A string containing the unique page URL that this form modifies. For use on pages with dynamic content (eg: feeds) in conjunction with progressive enhancement: if `fn` is a [server action](/reference/react/use-server) and the form is submitted before the JavaScript bundle loads, the browser will navigate to the specified permalink URL, rather than the current page's URL. Ensure that the same form component is rendered on the destination page (including the same action `fn` and `permalink`) so that React knows how to pass the state through. Once the form has been hydrated, this parameter has no effect.
6263
6364
{/* TODO T164397693: link to serializable values docs once it exists */}
6465

0 commit comments

Comments
 (0)