Best of ReactOctober 2022

  1. 1
    Article
    Avatar of bitBits and Pieces·4y

    How to Fetch API Data in React Like a Pro

    How to Fetch API Data in React Like a Pro Building applications the user use love is not an easy task. The technique we are going to talk about is known as render as you fetch. This simple technique is also suggested by React itself while fetching data.

  2. 2
    Article
    Avatar of nextNext.js·3y

    Blog - Next.js 13

    Next.js 13 includes Turbopack, the new Rust-based successor to Webpack. New next/image(stable): Faster with native browser lazy loading. New @next/font(beta): Automatic self-hosted fonts with zero layout shift.

  3. 3
    Article
    Avatar of devtoDEV·3y

    React Just Got Even More Awesome

    The use hook is only meant to handle async behaviour, not caching or other advanced features. It's a step in the right direction for the react team and a welcome addition to the react ecosystem. If you're looking for a more advanced data fetching library, react-query is still the way to go.

  4. 4
    Article
    Avatar of patternsPatterns·4y

    Hooks Pattern

    React 16.8 introduced a new feature called Hooks. Hooks are functions that you can use to manage a components state and lifecycle methods. Hooks make it possible to - add state to a functional component - manage a component's lifecycle without using a class component. In both componentDidMount and componentWillUnmount, we're customizing the behavior of the app based on the window's resize event.

  5. 5
    Article
    Avatar of devtoDEV·4y

    Learn this before React

    The destructuring rest & spread operator promises map and filter methods. The find method returns the first element that satisfies the condition. FindIndex returns the index of that ["jack", "pritom" The spread operator enables us to spread the content of a iterable (i.e. array) into individual elements Spread. In simple terms promises are used to handle asynchronous operations.

  6. 6
    Article
    Avatar of webtoolsweeklyWeb Tools Weekly·3y

    VSCode Updates, Frameworks, Git/CLI, JS Utils

    This week's newsletter includes tools, extensions, the latest news, articles, and tutorials on VS Code. VSCode Updates, Frameworks, Git/CLI, JS Utils, and Email are all free and open-source tools.

  7. 7
    Article
    Avatar of gcgitconnected·4y

    React Best Practices for Software Design and Architecture

    React Best Practices for Software Design and Architecture has been working as a React developer since 2018. To keep an app productive and flexible we have to follow the software's architecture and design. We have to work on it effectively and change it without rewriting its base code.

  8. 8
    Article
    Avatar of communityCommunity Picks·4y

    Why useEffect is a bad place to make API calls

    UseEffect is a bad place to make API calls on useEffect. The design choices react team have made in useEffect hook are still a heated debate. The default behaviour is the dreaded ‘Infinite Render Loop’ which is pretty easy to run into.

  9. 9
    Article
    Avatar of itnextITNEXT·4y

    7 React Clean Code Tips You Should Know

    React Clean Code tips for developers to write maintainable React code. It's easy to apply test-driven development in React, too as the test setup process is so effortless. You’re still dealing with modules and their relations, like, which module is performing what tasks, and how other modules rely on them.

  10. 10
    Article
    Avatar of communityCommunity Picks·4y

    Make your React apps fast again

    Profiler can help you improve performance of a React application. We will go over ways to improve the performance of an app, including some pre-optimization techniques. We can use the Profiler in the React DevTools to measure performance of our apps. To use the profiler, you must Some are asynchronous, such as background HTTP calls, while others occur by user or You.

  11. 11
    Article
    Avatar of gcgitconnected·3y

    Managing types in React Typescript, the right way

    Typescript allows you to disregard conventions and write code your way. Here are some of the conventions that should be followed to write clean and readable code. The keyof operator in JavaScript helps with getting the type of Here is an example of @types/index.d.ts: In this example, you can see the type Optional being defined as well as a new namespace Api.

  12. 12
    Article
    Avatar of communityCommunity Picks·3y

    Lazy Loading in images with React JS 😴

    Lazy Loading in images with React JS is very important nowadays to improve the performance of your website. Performing image optimization helps your website to be faster, have better SEO and improve user experience. This time you will learn how to lazy load images in an application with React [...Array.from(Array(items).keys) The solution is to implement lazy loading. With this, the 15 images would appear downwards.

  13. 13
    Article
    Avatar of devtoDEV·3y

    How to write a good README

    README file is as indispensable for an open source project as it is the quality of the code. README files are plain text files because most of the source code hostings such as Github, GitLab or Azure Repos support the Markdown format. Using around 3 to 5 lines is a good rule of thumb. Each paragraph should have only one concept.

  14. 14
    Article
    Avatar of devtoDEV·3y

    Build a multi-language website using React in 3 minutes

    React-I18next is a react library that is used for translating languages. You can install the library by the command line below: npm install i18next react-i18next. The default language is English.

  15. 15
    Article
    Avatar of logrocketLogRocket·3y

    Building a React portfolio website with Locomotive Scroll

    Locom automotive Scroll is a React scroll library that builds on ayamflow’s virtual-scroll, a library used to create custom scrollers. With the react-locomotive-scroll package, pages and sections can be manipulated to make them appear over other sections when scrolling. Add the styles below to your App.css file, as recommended by thereact-locmotive- scrollpackage’. With that done, we should be able to achieve the smooth scrolling behavior.

  16. 16
    Article
    Avatar of phProduct Hunt·4y

    Planby - React.js based component for schedules and timelines

    React.js is a component for a quick implementation of Schedules, Timelines, Electronic Program Guide, Calendar Planner, Music Events and many more ideas.

  17. 17
    Article
    Avatar of medium_jsMedium·4y

    A guide to React 18 hooks

    React 18 Hooks are the new patterns that got introduced in React 16.8 version. Hooks were introduced in class components but this time in the functional components. These Hooks Apis could help us interact with the React local states, the lifecycle features and many more things.

  18. 18
    Article
    Avatar of changelogChangelog·3y

    remult/remult: A CRUD framework for full stack TypeScript

    Remult is a full-stack CRUD framework that uses your TypeScript entities as a single source of truth for your API, frontend type-safe API client and backend ORM. It abstracts away repetitive, boilerplate, error-prone and poorly designed code on the one hand. Using Remult means having the ability to handle any complex scenario by controlling the backend in numerous ways.

  19. 19
    Article
    Avatar of pointerPointer·4y

    tremorlabs/tremor: The react library to build dashboards fast.

    The react library to build dashboards fast Documentation. Website Tremor lets you create simple and modular components to build insightful dashboards. Fully open-source, made by data scientists and software engineers with a sweet spot for design. We are in beta, please be aware that there might be breaking changes in the future.

  20. 20
    Article
    Avatar of asayerasayer·4y

    React Fiber explained

    Facebook began the creation of React Fiber in 2015(It is currently the default reconciler). The literal implementation of a fiber is an object. It is simply a Javascript object that contains information about a react component. The return fiber is the fiber to which the program should return after processing the current one.

  21. 21
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    Code a project three different ways (JavaScript + REST API + Database)

    Code a project three different ways (JavaScript + REST API + Database) We just published a course on the freeCodeCamp.org YouTube channel that will teach you how to code a flight widget in JavaScript using multiple methods.

  22. 22
    Article
    Avatar of communityCommunity Picks·4y

    Deploy website on Cloudflare

    Cloudflare is our go-to. Deploy website on Cloudflare for free.

  23. 23
    Article
    Avatar of communityCommunity Picks·3y

    Why We're Breaking Up with CSS-in-JS

    CSS-in-JS allows you to style your React components by writing CSS directly in your JavaScript or TypeScript code. It's easy to accidentally apply styles more widely than you intended. The ability to use JavaScript constants in styles reduces duplication in some cases, since the same constant does not have to be defined as both a CSS variable and a JavaScript constant. Inline styles are not ideal for performance.

  24. 24
    Article
    Avatar of asayerasayer·3y

    Build a CRUD app with React and Firebase

    Firebase version 9 SDK initiates an API surface that follows a modular approach. In this tutorial, we will build a to-do app with Firebase that will be able to read, edit, and delete Todos. Application Demo: Create, Read, Update, and Delete is referred to as CRUD. The component will be used to display, edit and delete todos. After the imports, create a state named Subject (i.e. and the todos to be added.

  25. 25
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    How to Use map(), filter(), and reduce() in JavaScript

    Map, filter, and reduce are three of the most useful and powerful high-order array methods. In this tutorial, you'll see how each of these high- order array methods work. You'll also learn where you'll want to use them, with the help of analogies and examples. The reduce() method reduces an array to a single value by performing the desired operation on the elements collectively.