相信這一年你一定常常聽到 React 這個關鍵字。「ReactJS 顛覆了前端世界…」「React Native 快速打造原生手機應用程式…」「React blah, blah, blah…」
不過,在你的印象中,React 是什麼呢?
“Redux is a predictable state container for JavaScript apps.”
“Flux 是一種單向資料流的設計模式,幫助你撰寫有條理的前端架構。”
React, 翻譯文章, 如何在元件中取得 DOM 元素
hello, world 是自古以來學習每一門程式語言的第一支程式,這支程式將幫助初學者確認自己的開發環境和執行環境是否安裝妥當。
因此,我們也不會例外。
假設我們的網站真的是由樂高堆疊起來的,身為前端工程師的我們,該設計多少個元件呢?
在前幾篇文章中,我們了解 React 最重要的思維是「元件設計」。它讓我們方便得透過重複利用和組合元件,作成一個複雜的應用程式,這樣的開發體驗就如同你小時候疊樂高般。
一個 React 元件,可以透過參數(props)來改變自身的行為和樣式。
These were the top 10 stories published by 前端魔法研究室; you can also dive into yearly archives: 2016, 2017.