Open in app

Sign In

Write

Sign In

Weian Wang
Weian Wang

55 Followers

Home

About

Published in Level Up Coding

·Pinned

Exploring Next.js : multi-lingual support with next-i18next

Nowadays multi-lingual support is getting more and more important. It has already become a standard in modern websites. There are many ways to achieve it. But it is very important to do it early in a project. Apply multi-lingual support to the existing web could be painful because you have…

React

4 min read

Exploring Next.js : multi-lingual support with next-i18next
Exploring Next.js : multi-lingual support with next-i18next
React

4 min read


Apr 17, 2021

探索 Next.js:用 next-i18next 完成多語言支援

網際網路沒有邊界,可是語言有。要讓網站打破語言的限制就必須支援多國語言,因此支援多國語言對現代網站來說是非常重要的功能。對於 React 社群來說,有許多的套件可以實現這個功能,但是如果你的專案使用 Next.js 作為框架,next-i18next 就是最好的選擇。這篇文章中我們將實作一個小範例,使用 next-i18next 來完成多語系支援。 next-i18next The easiest way to translate your NextJs apps. If you are using next-i18next in production, please consider sponsoring…www.npmjs.com 建立專案 首先建立一個專案,然後完成 Next.js 開發環境的配置。詳細步驟可以參考這篇文章。接著安裝 next-i18next …

React

6 min read

探索 Next.js:用 next-i18next 完成多語言支援
探索 Next.js:用 next-i18next 完成多語言支援
React

6 min read


Published in JavaScript in Plain English

·Apr 10, 2021

Build a Rich-Text Editor with React Draft Wysiwyg

Rich text editor has become a common component in modern web. It makes the website more interactive with users. But building a rich text editor can be really tricky. To react community, we are lucky to have react-draft-wysiwyg. It is a powerful text editor. In this article, I am going…

React

4 min read

Build a Rich-Text Editor with React Draft Wysiwyg
Build a Rich-Text Editor with React Draft Wysiwyg
React

4 min read


Published in Level Up Coding

·Apr 5, 2021

How to publish your react component package to npm?

What is NPM? npm is a package manager for Node.js. Also an online database of more than one million javascript development tools(packages). To download a package from npm, all you have to do is run command: npm install <package> And the package will automatically be downloaded to the node_modules folder…

NPM

5 min read

How to publish your react component package to npm?
How to publish your react component package to npm?
NPM

5 min read


Published in JavaScript in Plain English

·Mar 5, 2021

Exploring Dynamic Imports in Next.js

Why should we do dynamic import Nowadays we use tools like webpack to bundle our JavaScript, it makes all our JavaScript into one bundle.js file. It saves us a lot of work. But the problem is this file can be huge while modern website is getting more and more complex. When Browsers deal with this huge…

Nextjs

3 min read

Dynamic Imports in Next.js
Dynamic Imports in Next.js
Nextjs

3 min read


Jan 23, 2021

使用Next.js開發React(一)建立專案

Next.js是一款非常受歡迎的React框架,你也許沒有聽過他,但你一定使用過基於Next.js開發的網站,像是Netflix, Docker, GitHub 和 Uber 這些大公司都使用了 Next.js。 在開始之前先來簡單介紹 Next.js 的優點與缺點,了解我們為什麼要使用它。 為甚麼選擇Next.js 建立開發環境 Next.js 一個很棒的優點是容易上手 …

Nextjs

6 min read

使用Next.js開發React(一)建立專案
使用Next.js開發React(一)建立專案
Nextjs

6 min read


Dec 5, 2020

如何發布自己的 React Component 套件到 npm 上

什麼是 npm ? npm 是 Node.js 的套件管理工具,也是資源豐富的線上套件庫,透過 npm下載現成的套件就是前端工程師的日常,只需要向 npm 下指令,它就會自動下載套件到我們指定專案中的 node_modules 資料夾下,馬上就可以使用,替開發者省下了大量的時間。不過在這個社群得之於人者太多是不需要謝天的,因為自己發布套件回饋社群其實一點都不難,而且 …

React

7 min read

如何發布自己的 React Component 套件到 npm 上
如何發布自己的 React Component 套件到 npm 上
React

7 min read


Jul 31, 2020

How I transitioned to front-end developer in 6 months

I was a writer and editor of travel guide book. Without CS background it took about six months for me to become a front-end developer. One of the most important thing you have to figure out before you start is why you want to do this. …

Code

9 min read

How I transitioned to front-end developer in 6 months
How I transitioned to front-end developer in 6 months
Code

9 min read


Jul 5, 2020

10 Minutes building a React carousel base on React hook

Before we start, i think it’s necessary to talk about the reason i write this article. I hope i can help people who read this article easily build a carousel, get experiences applying React Hook to your project and how to make good use of ternary operator in React JSX…

React

3 min read

10 Minutes building a React carousel base on React hook
10 Minutes building a React carousel base on React hook
React

3 min read


Jul 4, 2020

十分鐘搞定 React Draft Wysiwyg文字編輯器

最近正在進行的專案遇到了文字編輯器的需求,發現市面上已經有許多強大的文字編輯器,既然已經有大神做的現成品,我當然就不需要重複造輪子啦(其實根本造不出來)。爬了一下文就決定使用 React Draft Wysiwyg,它的造型簡潔乾淨、功能齊全,看起來又很容易應用,完全符合我的需求。 React Draft Wysiwyg Edit descriptionjpuri.github.io 官網上的文件很詳細、清楚,我們就照著說明一步一步來做吧。 首先用yar …

Front End Development

11 min read

十分鐘搞定 React Draft Wysiwyg文字編輯器
十分鐘搞定 React Draft Wysiwyg文字編輯器
Front End Development

11 min read

Weian Wang

Weian Wang

55 Followers

Front-End Developer/Travel Guide Book Writer

Following
  • Trey Huffine

    Trey Huffine

  • Sunil Sandhu

    Sunil Sandhu

  • Salie Chien

    Salie Chien

  • Markus Hanslik

    Markus Hanslik

  • Mike Wang

    Mike Wang

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech