26
1
submitted 10 months ago by nemeski@mander.xyz to c/react@programming.dev
27
1
submitted 11 months ago by nemeski@mander.xyz to c/react@programming.dev
28
1

Excited to share this @react and @djangocms integration tutorial—a clear, concise walkthrough demonstrating how to marry a dynamic modern frontend (React) with a powerful backend CMS (Django CMS). Whether you’re a frontend engineer looking to enhance content management, or a backend developer eager to elevate user interfaces, this tutorial delivers seamless integration strategies every step of the way.

📺 Check it out

https://www.youtube.com/watch?v=qTQKf1KvXmU

29
1
Count child elements HOC (programming.dev)

I'm looking to write an HOC that counts and prints to the console the number of elements in the wrapped component. For example:

const Foo: FC<{}> = ({}) => {
    return (
        <div>
            <h1>Foo</h1>
            <p>Bar</p>
        </div>
    )
}


export default countH1(Foo)

this should print 1 and then return Foo as is for rendering.

React.Children.forEach(child => {...})

seems to be about the explicit children property and not descendant html elements. How can I achieve this?

30
1
submitted 2 years ago* (last edited 2 years ago) by lemmeBe@sh.itjust.works to c/react@programming.dev

First off, I've been loving vanilla-extract for the past 10 months. 😊

The only thing I really missed was the ability to sort CSS properties. Since there wasn't an ESLint plugin for that, I decided to create my own.

@antebudimir/eslint-plugin-vanilla-extract offers CSS property ordering (alphabetical, concentric, and custom), auto-fix capabilities, and supports multiple Vanilla Extract APIs.

If anyone wants to give it a shot, you can find more details in the readme. Looking forward to hearing your feedback.

31
1
32
1
33
1
submitted 2 years ago* (last edited 2 years ago) by cosmicbytes@programming.dev to c/react@programming.dev

Hi all,

This is my first time posting my blog, I hope you enjoy it!

34
1
35
1
State of React 2023 survey results (2023.stateofreact.com)
36
1

The article mentions Next.js but it also applies to vanilla React as the sizes attribute is useful even outside Next's <Image> component.

37
1
38
1
39
1

Hi there,

I have written an article on implementing server-side caching that ensures your app stays fast as you scale.

I’ve used ExpressJS for the API server, and React for the frontend.

Hope this helps someone!

40
1
submitted 2 years ago* (last edited 2 years ago) by BlackEco@lemmy.blackeco.com to c/react@programming.dev

I stumbled upon this project on GitHub and figured it might be of interest to some people here

41
1

React

1274 readers
15 users here now

A community for discussing anything related to the React UI framework and it's ecosystem.

https://react.dev/

Wormhole

!pico8@programming.dev

Icon base by Skoll under CC BY 3.0 with modifications to add a gradient

founded 3 years ago
MODERATORS