반응형

토스가 꿈꾸는 React Native 기술의 미래

https://toss.tech/article/react-native-2024

 

토스가 꿈꾸는 React Native 기술의 미래

토스 프론트엔드 챕터는 어떻게 React Native 기술을 발전시켜 나갈 예정일까요?

toss.tech

 

https://youtu.be/6H9WQDRFZYg

 

반응형
반응형

https://stfalconcom.medium.com/flutter-vs-react-native-ae79df948a16

 

Flutter vs. React Native

Let's start the analysis of the topic, which is better to select Flutter or React Native for work, it’s necessary to recognize where it all…

stfalconcom.medium.com

작업을 위해 Flutter 또는 React Native를 선택하는 것이 더 나은 주제 분석을 시작하겠습니다. 모든 것이 어디서 시작되었는지 인식해야 합니다. DataReportal의 Digital 2022 Global Statshot 통계 및 보고서에 따르면 지구상의 거의 70%의 사람들이 매일 휴대전화를 사용합니다.

즉, 현대인의 라이프스타일이 모바일 애플리케이션 산업에 엄청난 수혜를 안겨준 셈이다. 그러므로 따라서 후자를 개발하는 경우는 여전히 매우 적절하다. 결국 오늘날의 기술 리더인 Google과 Facebook이 만든 Flutter & React Native가 등장합니다.

우리는 다음 질문을 고려하여 본 연구에서 어떤 것을 선택하는 것이 더 나은지 논의할 것입니다.

본 연구에서는 다음 질문을 고려하여 완벽한 선택에 대해 논의할 것입니다.

  • 반응이란 무엇입니까?
  • 플러터란 무엇인가요?
  • 2023년에 무엇을 선택할 것인가: Flutter 또는 React Native?
  • 마지막 생각들.

Flutter 및 React 앱 개발에 대한 풍부한 정보가 매일 인터넷에 넘쳐나는 시대에 우리는 더 깊이 탐구한다는 점을 강조하는 것이 중요합니다. 이 글에서는 Flutter와 React Native의 중요한 차이점을 살펴보고 차이점을 살펴보겠습니다.

그럼, 조사를 시작하겠습니다!

리액트 네이티브와 Flutter

Flutter와 React Native의 비교는 새로운 것이 아니며 광범위하게 논의된 주제입니다. 그러나 어떤 도구가 더 우수한지에 대한 질문에 대한 명확한 답은 아직 파악하기 어렵습니다. 두 프레임워크 모두 열광적인 헌신적인 커뮤니티와 함께 ​​각각의 장점과 단점을 가지고 있습니다. 이 기사의 목표는 Flutter와 React Native에 대한 포괄적인 이해를 제공하여 이러한 하이브리드 기술의 복잡성을 보다 효과적으로 탐색할 수 있도록 하는 것입니다. 이러한 지식을 바탕으로 정보에 입각한 선택을 하고 선호도에 맞는 도구를 선택하는 데 더 많은 준비를 갖추게 될 수 있습니다.

Flutter와 React Native의 비교는 그렇지 않으며 이미 충분히 논의된 주제입니다. 더욱이 어떤 도구가 최고의 도구인지에 대한 결정적인 답변은 여전히 ​​어렵습니다. 두 프레임워크 모두 고유한 강점과 약점을 갖고 있으며, 각 프레임워크에는 열렬한 지지자 커뮤니티가 수반됩니다. 이 기사의 목표는 Flutter 및 React Native에 대한 포괄적인 이해를 제공하여 이러한 하이브리드 기술의 복잡성을 더욱 능숙하게 탐색할 수 있도록 지원하는 것입니다. 이러한 지식을 통해 귀하는 현명한 결정을 내리고 귀하의 선호도에 가장 적합한 도구를 선택할 수 있는 준비를 갖추게 될 것입니다.

플러터는 무슨 뜻인가요?

Flutter에 대해 이야기하기 시작할 때 이것이 모바일 앱이나 휴대용 소비자 인터페이스 도구 키트를 만들기 위한 크로스 플랫폼 플랫폼이라는 점을 정확히 말할 필요가 있습니다. 개발자에게 도구 및 위젯으로 구성된 완전한 소프트웨어 개발 키트(SDK)를 제공합니다.

Flutter로 데스크톱 앱을 만들 때 Flutter 소스 코드를 기본 Windows, Linux 또는 macOS 데스크톱 앱으로 수집할 수 있습니다. 예를 들어 Flutter의 웹 지원은 인터넷 및 모바일 장치에서 동일한 프로세스를 제공합니다. 이는 이제 동일한 코드베이스에서 iOS, Android 및 웹 브라우저용 애플리케이션을 만들 수 있음을 의미합니다.

Google 팀에서 개발하고 Dart를 기반으로 구축된 Flutter는 무료이면서도 비교적 새로운 기능으로, 접근성이 뛰어나고 이해하기 쉽습니다. 고성능 렌더링 엔진으로 구동되는 사용자 정의 위젯 컬렉션을 제공합니다. 특히 Google과 Flutter 커뮤니티는 지속적인 개발에 적극적으로 기여하고 있습니다. 결과적으로 Flutter는 자신있게 신흥 기술로 분류될 수 있습니다.

초기 반복에서 Flutter는 Android 및 iOS와 호환되는 모바일 애플리케이션을 만들기 위한 툴킷을 제공했습니다. 후속 버전을 통해 발전하면서 Flutter는 다양한 플랫폼에 대한 지원을 포괄하도록 범위를 확장했습니다. 이 확장에는 Windows, macOS, Linux, 웹 애플리케이션 및 Flutter 사용을 위해 맞춤 제작된 특수 플랫폼이 포함되었습니다. 특히 2023년 1월 Flutter 3.7의 출시는 중요한 이정표였습니다. 이 업데이트에는 iOS에 최적화된 렌더링 엔진, Material 3 및 iOS 스타일 위젯에 대한 향상된 지원, 향상된 현지화 솔루션, 더욱 효율적인 배경 데이터 처리, 개발 도구 개선 등 다양한 새로운 기능이 도입되었습니다.

반응은 무엇을 의미합니까?

반면 React Native는 JavaScript를 활용하고 Facebook에서 제작한 모바일 앱용 오픈 소스 프레임워크입니다.

2023년에 React Native를 배워야 하는 가장 강력한 이유 중 하나는 플랫폼 독립성입니다. 과거에는 개발자들이 Android 애플리케이션 개발에는 Java를, iOS 애플리케이션 개발에는 Swift를 주로 활용해야 했습니다. 게다가 Windows와 같은 다른 플랫폼도 있어서 프로세스가 더 복잡해졌습니다. React Native는 여러 플랫폼에서 원활하게 실행되는 앱을 만들기 위한 완벽한 옵션으로 등장합니다. React Native를 사용하면 앱을 한 번만 빌드하면 모든 주요 플랫폼에서 쉽게 실행됩니다. 또한 React Native는 React에 익숙한 사람들에게 친숙한 JSX를 활용하며 종종 HTML과 JavaScript의 혼합으로 정의됩니다. 이러한 친숙함 덕분에 일부 어려운 개념에도 불구하고 React Native를 비교적 쉽게 배울 수 있습니다. 유사한 목표를 위해 Java를 활용하는 것과 비교할 때 React Native를 사용한 구성 앱은 훨씬 더 쉽고 효율적입니다.

React Native는 Flutter보다 오래되었으며 더 큰 커뮤니티를 자랑한다는 점을 강조해야 합니다. 계속 읽어보자!

React와 Native Flutter의 차이점

아래에서는 두 프레임워크의 장점과 단점에 대해 설명하겠습니다.

기본 성능 비교

Flutter는 AOT(Ahead-of-Time) 컴파일러를 활용하여 프로젝트가 빌드된 후 iOS 및 Android에 최적화된 코드를 생성하여 애플리케이션 바이너리에 전체 코드베이스를 포함할 필요 없이 네이티브 수준의 성능을 보장합니다. 이는 React Native와 공통된 기능입니다. . 특히, 네이티브 모듈과 상호작용하기 위해 브리지를 요구하는 React Native와 달리 Flutter는 네이티브 모듈과 직접 통신합니다.

React Native는 JIT 컴파일러 덕분에 V8보다 뛰어난 향상된 JavaScript 가상 머신을 자랑합니다. 사전 컴파일된 프레임워크로서 모든 코드베이스를 배포하고 기본 실행 파일로 컴파일할 수 있습니다. 일반적으로 React Native는 iOS 빌드 설정을 조정할 필요 없이 iOS 애플리케이션 수준에서 수행하여 기본 앱과 동일한 속도를 달성합니다.

React Native는 JIT 컴파일러 덕분에 성능 면에서 V8을 능가하는 뛰어난 JavaScript 가상 머신을 갖추고 있습니다. 사전 컴파일된 프레임워크로서 모든 코드베이스를 기본 실행 파일로 배포하고 컴파일하는 것을 용이하게 합니다. 일반적으로 React Native는 iOS 빌드 설정을 수정할 필요 없이 iOS 애플리케이션 수준에서 수행하여 기본 앱과 동일한 속도를 달성합니다.

결론 : Flutter와 React Native 모두 네이티브 수준의 높은 성능을 자랑하지만 Flutter는 네이티브 모듈과 직접 통신합니다.

프로그래밍 언어

React Native는 동적 웹 개발을 가능하게 하는 최초의 언어인 고전적인 JavaScript 프로그래밍 언어를 활용합니다.

Flutter는 2011년에 발표된 이후 훨씬 새로운 언어인 Dart를 활용합니다.

JavaScript는 Dart에 비해 더 광범위하고 광범위하게 사용됩니다. 결과적으로 개발자는 React Native 애플리케이션 개발에 뛰어드는 것이 더 익숙하고 편안하다고 생각하는 경우가 많습니다.

결론: Flutter와 React Native 프로그래밍 언어 모두 무결성이 있지만 React Native가 승리합니다.

신뢰할 수 있음

안정적인 플랫폼을 사용하여 모바일 애플리케이션을 신속하게 개발하는 것이 우선이라면 Flutter가 더 나은 옵션이 될 수 있습니다. 반대로, 강력한 지원 생태계와 강력한 UI 기능을 자랑하는 잘 확립된 플랫폼을 찾고 있다면 React Native가 더 적절한 선택일 수 있습니다.

결론 : React Native와 Flutter는 모두 안정적이지만 React Native는 강력한 지원 생태계를 갖추고 있습니다.

소비자 인터페이스 구축

React Native 프레임워크는 Flutter의 규모를 능가하는 광범위하고 활발한 커뮤니티로 돋보입니다. 풍부한 UI 디자인, 라이브러리, 철저한 문서 및 수많은 보충 리소스를 제공합니다. 또한 React Native는 Flutter와 비교할 때 훨씬 더 풍부한 타사 라이브러리를 자랑합니다.

결론: React Native는 소비자 인터페이스를 구축하는 데 가장 적합한 옵션입니다.

선적 서류 비치

Flutter에는 Android와 iOS 모두에 대한 명확한 플랫폼 설정 및 IDE 정보가 있습니다. 명령줄 인터페이스(CLI)도 개발자의 설정을 지원하는 도구인 Flutter Doctor와 함께 제공됩니다.

오픈 소스 특성 덕분에 Flutter는 뛰어난 사용자 정의 및 유연성을 제공하므로 개발자는 독특한 소비자 경험을 쉽게 준비할 수 있습니다.

React Native는 새로운 업데이트가 나올 때마다 계속해서 발전하고 있습니다. 계속해서 교육을 받으려면 React Native의 공식 문서 와 웹 리소스를 주의 깊게 살펴보세요 .

결론: Flutter는 포괄적인 문서를 자랑하지만 React Native는 끊임없이 진화하고 있습니다.

설치 용이성

React Native 설치는 간단하지만 패키지를 생성하므로 일부 개발자에게는 사소한 불편함으로 보일 수 있습니다. 그러나 이 요소는 사용자마다 중요도가 다릅니다. React Native는 주로 UI 렌더링 및 장치 액세스 API를 제공하며 해당 기능을 보완하기 위해 타사 라이브러리에 의존한다는 점은 주목할 가치가 있습니다.

React Native 설치는 간단한 프로세스이지만 패키지 생성이 포함되어 있어 특정 개발자에게는 사소한 불편으로 간주될 수 있습니다. 이 요소의 중요성은 사용자마다 다르다는 점을 강조하는 것이 중요합니다. 또한 React Native는 기능 향상을 위해 타사 라이브러리에 따라 주로 UI 렌더링 및 장치 액세스 API를 제안한다는 점에 주목할 가치가 있습니다.

Flutter는 작은 ZIP 파일에서 얻을 수 있지만 명령줄에서 PATH 변수로 추가해야 합니다. 이것은 일을 불필요하게 어렵게 만듭니다.

결론: React Native는 Flutter보다 설정하기가 훨씬 쉽습니다.

지역 사회

React Native는 Flutter보다 앞서며 더 큰 커뮤니티를 자랑합니다. 또한 Meta 팀은 API를 개선하고 근본적인 문제를 해결하는 데 많은 시간을 보냈습니다.

React Native는 버전 0.70부터 기본 엔진이었던 새로운 JavaScript 엔진 Hermes를 채택하여 성능 최적화 및 메모리 사용량 감소 측면에서 상당한 진전을 이루었습니다. 이에 대한 더 자세한 내용은 React Native 블로그 게시물을 참조하세요.

또한 Meta는 다음과 같은 몇 가지 중요한 개선 작업을 적극적으로 진행하고 있습니다.

  • 린 코어(Lean Core): 여기에는 선택적 구성 요소나 기능을 별도의 저장소에 재배치하여 개발자가 필요에 따라 이를 애플리케이션에 추가할 수 있도록 하여 애플리케이션의 크기를 줄이는 것이 포함됩니다.
  • React Native Fabric: 성능 향상을 위해 재구성된 UI 레이어입니다.
  • TurboModules: 이는 기본 모듈 처리를 개선하는 것을 목표로 합니다.

결론: React Native는 이제 Flutter에 비해 더 크고 강력한 커뮤니티 지원을 자랑합니다.

디버깅

React Native에서는 디버깅이 어려울 수 있습니다. 특히 앱의 기본 부분 어딘가에 특정 예외나 실수가 나타날 경우 더욱 그렇습니다.

반면 Flutter는 Android Studio 및 Visual Studio와 원활하게 통합되는 도구를 제공하여 디버깅 프로세스를 단순화하고 개발 워크플로를 간소화합니다.

결론: Flutter가 이 비교에서 승리했습니다.

인기

2023년 현재 Flutter와 React Native라는 두 가지 주요 하이브리드 앱 개발 프레임워크가 계속해서 업계를 지배하고 있습니다. 놀랍게도 두 프레임워크의 인기는 계속 높아지고 있습니다. 2023년에는 42%의 개발자가 앱 개발을 위해 React Native를 선호했으며, Flutter가 39%로 그 뒤를 바짝 쫓고 있습니다.

올해인 2023년에도 Flutter와 React Native라는 두 가지 주요 하이브리드 앱 개발 프레임워크가 여전히 영향력을 행사하고 있습니다. 흥미롭게도 두 프레임워크의 매력이 계속 높아지고 있습니다. 올해 React Native는 개발자 중 42%가 애플리케이션 개발을 선호했으며, Flutter가 39%로 그 뒤를 바짝 쫓고 있습니다.

결론: React Native는 인기로 승리합니다.

위의 내용을 표로 요약해 보겠습니다.

계속하자!

2023년에 무엇을 선택할 것인가: React Native 또는 Flutter

Flutter를 선택할지, React Native를 선택할지 고민할 때 명확하거나 간단한 대답이 없다는 점에 유의하는 것이 중요합니다. 두 옵션 모두 실행 가능한 선택입니다.

우리가 알 수 있는 한, React Native와 Flutter는 공통점이 많지만 많지는 않습니다. 첫 번째이자 가장 중요한 사실은 둘 다 누구나 활용할 수 있는 오픈 소스 프레임워크라는 것입니다.

Flutter 프레임워크와 그것이 2023년 프로젝트에 적합한 선택인지에 대해 여전히 질문이 있는 경우 이 주제에 대한 연구 중 하나를 읽어 보시기 바랍니다 .

2023년에 어떤 기술이 승자가 될지 정의하는 것은 간단한 과제가 아닙니다. React Native와 Flutter는 모두 다양한 장단점을 보여줍니다. Flutter는 크로스 플랫폼 모바일 앱을 만들기 위한 신속하고 신뢰할 수 있는 프레임워크로 두각을 나타내며, 다양한 오픈 소스 라이브러리 및 강력한 플러그인 생태계에 대한 액세스를 제안합니다. 반면에 React Native는 개발자가 JavaScript를 활용하여 복잡한 소비자 인터페이스를 만들 수 있도록 지원하고 광범위하고 헌신적인 개발 커뮤니티의 이점을 누릴 수 있습니다.

궁극적으로 이 두 프레임워크 사이의 선택은 아마도 개인의 필요와 선호도에 달려 있을 것입니다. 신속한 모바일 애플리케이션 개발을 촉진하는 빠르고 안정적인 플랫폼을 우선시한다면 Flutter가 더 나은 선택일 수 있습니다. 게다가, 포괄적인 지원과 강력한 UI 기능을 갖춘 잘 확립된 플랫폼을 찾고 있다면 React Native가 귀하의 요구에 더 나은 옵션이 될 수 있습니다.

반응형
반응형

개발자 로드맵 - https://roadmap.sh/frontend    react

 

Developer Roadmaps

Community driven roadmaps, articles, guides, quizzes, tips and resources for developers to learn from, identify their career paths, know what they don't know, find out the knowledge gaps, learn and improve.

roadmap.sh

반응형
반응형

React Developer Tools

https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en 

 

React Developer Tools

Adds React debugging tools to the Chrome Developer Tools. Created from revision 47f63dc54 on 12/6/2022.

chrome.google.com

 

반응형
반응형

9 Projects You Can Do to Become a Front-End Master in 2023

https://levelup.gitconnected.com/9-projects-you-can-do-to-become-a-front-end-master-in-2023-a4389153148c

 

9 Projects You Can Do to Become a Front-End Master in 2023

e-commerce, blog, app, and more!

levelup.gitconnected.com

9 Projects You Can Do to Become a Front-End Master in 2023

Photo by Pankaj Patel on Unsplash

Introduction

Whether you’re new to programming or already an experienced developer in this industry, learning new concepts and languages/frameworks is
mandatory to keep up with the rapid changes.

Take, for example, React — open-sourced by Facebook just a shy four years ago, it’s already become the number one choice for JavaScript devs around the globe.

Vue and Angular, of course, also have their legitimate follower base. And then there are Svelte and universal frameworks like Next.js or Nuxt.js. And Gatsby and Gridsome and Quasar … and, and, and.

If you want to shine as an expert JavaScript developer, you should at least have some experience in different frameworks and libraries — besides doing your homework with good, old JS.

To help you become a front-end master, I have collected nine projects, each with a specific topic and a different JavaScript framework or library as a tech stack that you can build and add to your portfolio. Remember, nothing helps you more than actually building stuff so go ahead, sharpen your mind, and make this happen.

 

Build a Movie-Search App Using React (With Hooks)

The first thing you could start with is building a movie-search app using React. Below is an image of how the final app will look:

What you’ll learn

In building this application, you’ll improve your React skills using the relatively new Hooks API. The example project uses React components, many hooks, an external API, and, of course, some styling via CSS.

Tech stack and features

  • React with hooks
  • create-react-app
  • JSX
  • CSS

Without using any classes, this project gives you a perfect entry point into functional React and will definitely help you in 2020.

You can find the example project here. Follow along with the tutorial, or give it your flavor.

 

Build a Chat App With Vue

Another great project for you is to build a chat app using my favorite JavaScript library: VueJS.

The app will look something like this:

What you’ll learn

Following this tutorial, you’ll learn how to set up a Vue app from scratch — creating components, handling states, creating routes, connecting to a third-party service, and even handling authentication.

Tech stack and features

  • Vue
  • Vuex
  • Vue Router
  • Vue CLI
  • Pusher
  • CSS

This is really a great project to get started with Vue — or to improve your existing skills — to tackle development in 2023.

You can find the tutorial right here.

 

Build a Beautiful Weather App With Angular 8

This example will help you build a beautiful weather app using Google’s Angular 8:

What you’ll learn

This project will teach you valuable skills while creating an application from scratch — starting with the design over development and going all the way to a production-ready deployment.

Tech stack and features

  • Angular 8
  • Firebase
  • Server-side rendering
  • CSS with Grid Layout and Flexbox
  • Mobile friendly and responsive
  • Dark mode
  • Beautiful UI

What I really, really like about this comprehensive project is you don’t learn things in isolation. Instead, you learn the whole development process — from the design to the final deployment.

You should really do this one.

 

Build a To-Do App With Svelte

Svelte is the new kid on the block — at least compared to React, Vue, and Angular. Nonetheless, it’s one of the hotties for 2023.

OK, to-do apps aren’t necessarily the hottest topic out there, but this will really help you to sharpen your Svelte skills. It’ll look like this:

What you’ll learn

This tutorial will show you how to make an app using Svelte 3 from start to finish. It makes use of components, styling, and event handlers.

Tech stack and features

  • Svelte 3
  • Components
  • Styling via CSS
  • ES 6 syntax

There aren’t that many good Svelte starter projects out there, so I found this one to be kind of good to start with.

And, who knows, maybe you’ll be the one creating another, more comprehensive Svelte tutorial that’ll be presented in the next year’s version of this post?

 

Build an E-Commerce Shopping Cart With Next.js

Next.js is the most popular framework for creating React applications that support server-side rendering out of the box.

This project will show you how to build an e-commerce shopping cart that looks like this:

What you’ll learn

In this project, you’ll learn how to set up a Next.js development environment — creating new pages and components, fetching data, and styling and deploying a Next application.

Tech stack and features

  • Next.js
  • Components and pages
  • Data fetching
  • Styling
  • Deployment
  • SSR and SPA

It’s always great to have a real-world example, such as an e-commerce showcase, to learn something new. You can find the tutorial here.

 

Build a Full-Blown Multilanguage Blog Website With Nuxt.js

Nuxt.js is to Vue what Next.js is to React: a great framework to combine the power of server-side rendering and single-page applications.

The final app that you could create will look like this:

What you’ll learn

This example project will teach you how to build a full-blown website using Nuxt.js — from the initial setup to the final deployment.

It uses many of the cool features Nuxt has to offer, like pages and components, as well as styling with SCSS.

Tech stack and features

  • Nuxt.js
  • Components and pages
  • Storyblok module
  • Mixins
  • Vuex for state management
  • SCSS for styling
  • Nuxt middlewares

This is a really cool project for you and covers many of the great features of Nuxt.js. I personally love working with Nuxt, so you should really try this one out, as it will also make you a better Vue developer.

 

Build a Blog With Gatsby

Gatsby is a great static-site generator that uses React and GraphQL under the hood. This is the result of this project:

What you’ll learn

In this tutorial, you’ll learn how to leverage Gatsby to build an outstanding blog that you use for writing your articles while making use of React and GraphQL.

Tech stack and features

  • Gatsby
  • React
  • GraphQL
  • Plugins and themes
  • MDX/Markdown
  • Bootstrap CSS
  • Templates

If you ever wanted to start a blog, this is a great example of how to do so by leveraging React and GraphQL.

I’m not saying that WordPress always is a bad choice, but with Gatsby, you can create highly performant sites while using React — which is an awesome combination.

 

Build a Blog With Gridsome

Gridsome is to Vue … OK, we already had that with Next/Nuxt.

But the same is true for Gridsome and Gatsby. Both use GraphQL as a data layer, but Gridsome uses VueJS. It also is an awesome static-site generator that’ll help you create great blogs:

What you’ll learn

This project will teach you how to build a simple blog to get started with Gridsome, GraphQL, and Markdown.

It also covers how to deploy the application via Netlify.

Tech stack and features

  • Gridsome
  • Vue
  • GraphQL
  • Markdown
  • Netlify

This, for sure, isn’t the most comprehensive tutorial, but it does cover the basic concepts of Gridsome and Markdown and could be a good starting point.

 

Build a SoundCloud-like Audio-Player App With Quasar

Quasar is another Vue framework that can also be used to build mobile applications.

In this project, you’ll create an audio-player app like this:

What you’ll learn

While the other projects focus mainly on web applications, this one will show you how to create a mobile app using Vue via the Quasar framework.

You should already have a working Cordova setup with Android Studio/Xcode configured. If not, there is a link in the tutorial to the Quasar website, where they show you how to set this up.

Tech stack and features

  • Quasar
  • Vue
  • Cordova
  • WaveSurfer
  • UI Components

A small project that shows the power of Quasar for building mobile apps.

 

Conclusion

In this article, I showed you nine projects that you can build, each focusing on another JavaScript framework or library.

Now the choice is all yours: Will you try something new by using a framework you haven’t used before? Or do you want to strengthen your skills by doing a project for a technology you already have some knowledge of? Or will you rely on your favorite framework/library and do all the projects in 2023 with it?

If you like what I write and want to support me and my work, please follow me on Twitter to learn more about programming, making, writing & careers🥰

반응형
반응형

[React] DnD - Drag andDrop for React 

https://react-dnd.github.io/react-dnd/about

 

React DnD

 

react-dnd.github.io

React DnD is a set of React utilities to help you build complex drag and drop interfaces while keeping your components decoupled. It is a perfect fit for apps like Trello and Storify, where dragging transfers data between different parts of the application, and the components change their appearance and the application state in response to the drag and drop events.

Installation

npm install react-dnd react-dnd-html5-backend

The second package will allow React DnD the HTML5 drag and drop API under the hood. You may choose to use a third-party backend instead, such as the touch backend.

// Let's make <Card text='Write the docs' /> draggable!

import React from 'react'
import { useDrag } from 'react-dnd'
import { ItemTypes } from './Constants'

/**
 * Your Component
 */
export default function Card({ isDragging, text }) {
  const [{ opacity }, dragRef] = useDrag(
    () => ({
      type: ItemTypes.CARD,
      item: { text },
      collect: (monitor) => ({
        opacity: monitor.isDragging() ? 0.5 : 1
      })
    }),
    []
  )
  return (
    <div ref={dragRef} style={{ opacity }}>
      {text}
    </div>
  )
}

 

 

https://codesandbox.io/s/github/react-dnd/react-dnd/tree/gh-pages/examples_js/01-dustbin/multiple-targets?from-embed=&file=/package.json 

 

react-dnd-example-3 - CodeSandbox

auto-generated package for codesandbox import

codesandbox.io

Backends

HTML5
Touch
Test
반응형
반응형

1. Node.js와 NPM 설치하기 

https://nodejs.org/ko/download/

 

다운로드 | Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

버전 확인.

 

2. VSCode에서 React 프로젝트 생성

> npm install -g create-react-app

> create-react-app my-app

npm install -g에서 -g옵션은 시스템 디렉터리에 패키지를 설치하는 것을 의미합니다.
-g 옵션이 없다면 module은 현재 디렉터리 내부에 로컬로 설치됩니다.

3. 'my-app' 디렉터리로 이동 후 'npm start' 명령어로 리액트 프로젝트 시작

반응형
반응형

초보자를 위한 SQL 200제 (PL/SQL)

http://www.yes24.com/product/goods/90226600

 

초보자를 위한 SQL 200제 (PL/SQL) - YES24

데이터를 활용하기 위한 최선의 방법!그동안 수없이 많은 프로그래밍 관련 기술들이 나왔지만, 데이터를 검색하고 다루는 기술은 SQL(Structure Query Language)이 한결같이 자리를 지키고 있다. 『초보

www.yes24.com

초보자를 위한 리액트 200제 (React)

http://www.yes24.com/product/goods/97126219

 

초보자를 위한 리액트 200제 (React) - YES24

따라하면서 이해하는 React A to Z리액트를 시작하기 전에 개발 환경을 준비하는 과정부터 시작하여 예제 파일을 실행하는 방법을 안내한다. 입문부터 초급, 중급, 활용, 실무까지 5개의 파트로 나

www.yes24.com

생활코딩! React 리액트 프로그래밍 http://www.yes24.com/product/goods/98551057

 

생활코딩! React 리액트 프로그래밍 - YES24

생활코딩은 일반인에게 프로그래밍을 알려주는 것을 목적으로 하는 비영리 교육 활동으로, 『생활코딩! React 리액트 프로그래밍』은 생활코딩에서 제공하는 수업 가운데 WEB3 - React 수업을 정리

www.yes24.com

반응형

+ Recent posts