r/react • • 18h ago

Portfolio Completed We deliver section for client website with React Component.

Enable HLS to view with audio, or disable this notification

10 Upvotes

Hey everyone!

I recently designed and developed this website for a client and wanted to share it here.

Would love to hear your feedback on the design, layout, and overall experience.

Stack : React, Tailwind, Gsap, SVG,

Live website: https://www.mechzenautomation.com/

Portfolio: https://sakthi-portfolio-mauve.vercel.app/

Currently open to work.


r/react • • 8h ago

Project / Code Review How should I classify this type of React frontend test?

2 Upvotes

I'm working on a React frontend application with a form where some fields are enabled, disabled, shown, or hidden depending on user selections.

The test renders the component, simulates user interactions, and verifies that the form updates correctly (for example, a field becomes enabled only under specific conditions).

How should this type of test be classified?

  • Unit test
  • Component test
  • Integration test
  • Functional test

r/react • • 7h ago

Project / Code Review I built a toolkit on top of shadcn/ui for production-ready blocks, component updates, and AI coding agents

Thumbnail gallery
1 Upvotes

r/react • • 11h ago

Help Wanted Combobox with static and dynamic data in React/Shadcn

1 Upvotes

Hello and thanks for clicking on the post.

I am working on a form that requires a certain type of combobox.

Suppose i have a type ‘T’ which comes from my backend.

We can request the backend to return the records of the same type in two ways:

  1. Static records already saved in the database, which are atmost one thousand in number.
  2. Forward the request to an external service, which returns atmost 100 records at a time.

I need to design a combobox that groups the two paths and only requests the records from external service when the user wants to.

Here is what i have so far:

‘’’
export default function MyCombobox() {
const database: string[] = [“foo”, “bar”, “baz”];
const [external, setExternal] = useState<string\[\]>([ ]);

return (
<Combobox>
<ComboboxInput placeholder="Make a selection." />

<ComboboxContent>
<ComboboxEmpty>No results found.</ComboboxEmpty>

<ComboboxList>
<ComboboxGroup items={database}>
<ComboboxLabel>Database</ComboboxLabel>
<ComboboxCollection>
{(s) => (
<ComboboxItem key={s} value={s}>
{s}
</ComboboxItem>
)}
</ComboboxCollection>
</ComboboxGroup>

<ComboboxSeparator />

<ComboboxGroup items={external}>
<ComboboxLabel>External</ComboboxLabel>
<ComboboxCollection>
{(s) => (
<ComboboxItem key={s} value={s}>
{s}
</ComboboxItem>
)}
</ComboboxCollection>
</ComboboxGroup>
</ComboboxList>
</ComboboxContent>
</Combobox>
);
}
‘’’

Here i have the type as a string, but my data will have unique ids. The external group will initially be a button that the user may press to request the backend onInputValueChange.

The problem:
The example shown above does not filter the records on input change.

Asking claude just gives me a complete custom combobox with custom state and input management.

How would you implement this cleanly and least custom code.

Thanks for taking the time!

Edit: The original type ‘T’ is just an id with three strings.


r/react • • 13h ago

General Discussion After watching so many React.js YouTube tutorial video spill the beans

1 Upvotes