GithubHelp home page GithubHelp logo

reactjs / th.reactjs.org Goto Github PK

View Code? Open in Web Editor NEW
44.0 8.0 37.0 147.05 MB

(Work in progress) React documentation website in Thai

Home Page: threactjsorg.fbopensource.vercel.app

License: Creative Commons Attribution 4.0 International

JavaScript 90.62% CSS 8.76% HTML 0.62%

th.reactjs.org's Introduction

reactjs.org

เรโป (repo) นี้ประกอบไปด้วยซอร์สโค้ด (source code) และเอกสารสำหรับ reactjs.org.

เริ่มต้นใช้งาน

ข้อกำหนดเบื้องต้น

  1. Git
  2. Node: เวอร์ชั่น 12.x โดยเริ่มต้นที่ v12.0.0 หรือเวอร์ชั่นที่ใหม่กว่า
  3. Yarn: ดู เว็บไซต์ Yarn: คำแนะนำสำหรับการติดตั้ง
  4. เรโป (repo) ที่ fork แล้ว (สำหรับผู้ที่เข้าร่วมโครงการ)
  5. clone ของ reactjs.org repo บนเครื่องของคุณ

การติดตั้ง

  1. cd reactjs.org เพื่อเข้าไปในรูทโปรเจ็กต์
  2. yarn เพื่อติดตั้ง npm ดีเพนเดนซี (npm dependencie) ของเว็บไซต์

การทำงานในเครื่อง

  1. yarn dev เพื่อที่จะเริ่มต้นฮอทรีโหลดดิ้ง (hot-reloading) เซิฟเวอร์ที่กำลังพัฒนาอยู่ (สนับสนุนโดย Gatsby)
  2. open http://localhost:8000 เพื่อเปิดเว็บไซต์ในบราวเซอร์ใดก็ได้ที่คุณชอบ

การสนับสนุน

แนวทาง

เอกสารแบ่งออกเป็นหลายส่วนด้วยลักษณะและวัตถุประสงค์ที่แตกต่างกัน หากคุณวางแผนที่จะเขียนมากกว่าสองสามประโยค คุณอาจพบว่าการทำความคุ้นเคยกับ แนวทางการสนับสนุน นั้นเป็นประโยชน์สำหรับแต่ละส่วน

สร้าง branch

  1. git checkout master ในโฟลเดอร์ของเรโป (repository) reactjs.org บนเครื่องของคุณ
  2. git pull origin master เพื่อให้มั่นใจว่าคุณมีโค้ดหลัก (main code) อันล่าสุด
  3. git checkout -b the-name-of-my-branch (แทนที่ the-name-of-my-branch ด้วยชื่อที่เหมาะสม) เพื่อที่จะสร้าง

การสร้างความเปลี่ยนแปลง

  1. ทำตามขั้นตอน "การทำงานในเครื่อง"
  2. เซฟไฟล์และตรวจสอบบนบราวเซอร์
  3. แก้ไขหรือเปลี่ยนแปลง React components ใน src จะทำให้ฮอทรีโหลด (hot-reload)
  4. แก้ไขหรือเปลี่ยนแปลงไฟล์มาร์กดาวน์ (markdown) ใน content จะทำให้ฮอทรีโหลด (hot-reload)
  5. ถ้าหากทำงานกับปลั๊กอิน (plugin), คุณอาจจำเป็นต้องลบ .cache ไดเรกทอรี (directory) และรีสตาร์ทเซิร์ฟเวอร์

ทดสอบสิ่งที่เปลี่ยน

  1. หากเป็นไปได้, ทดสอบการเปลี่ยนแปลงที่มองเห็นได้ด้วยตาในเบราว์เซอร์ทั่วไปที่เป็นเวอร์ชันล่าสุด ทั้งบนเดสก์ท็อปและมือถือ
  2. รัน yarn check-all ในรูทโปรเจค (นี่จะทำให้รัน Prettier, ESLint, และ Flow)

Push it

  1. git add -A && git commit -m "My message" (แทนที่ My message ด้วยข้อความที่จะคอมมิท เช่น Fix header logo on Android) เพื่อสเตทและคอมมิทสิ่งที่คุณเปลี่ยนแปลง
  2. git push my-fork-name the-name-of-my-branch
  3. ไปที่ reactjs.org repo และคุณควรจะเห็น branch ล่าสุดที่คุณ push
  4. ทำตามคำแนะนำของ GitHub
  5. หากเป็นไปได้, เพิ่มภาพสกรีนชอต (screenshot) ของการเปลี่ยนแปลงที่มองเห็นได้ Netlify build จะถูกสร้างโดยอัตโนมัติเมื่อคุณสร้าง PR เพื่อให้คนอื่นเห็นการเปลี่ยนแปลงที่คุณทำ

การแปลภาษา

ถ้าคุณสนใจในการแปล reactjs.org, ดูการแปลปัจจุบันได้ที่ isreacttranslatedyet.com

หากภาษาของคุณไม่มีการแปลและคุณต้องการที่จะสร้าง โปรดทำตามคำแนะนำที่ reactjs.org Translations

การแก้ไขปัญหา

  • yarn reset เพื่อล้างแคชในเครื่อง

การอนุญาต

เนื้อหาที่ส่งไปยัง reactjs.org ได้รับใบอนุญาต CC-BY-4.0 ตามที่พบในไฟล์ LICENSE-DOCS.md

th.reactjs.org's People

Contributors

acdlite avatar alexkrolick avatar arkist avatar bvaughn avatar chenglou avatar daniel15 avatar dependabot[bot] avatar dschau avatar gaearon avatar iamchenxin avatar iphayao avatar jimfb avatar jxom avatar kiroskirin avatar koba04 avatar kohei-takata avatar lex111 avatar marocchino avatar mcsheffrey avatar petehunt avatar reactjs-translation-bot avatar robhrt7 avatar saranshkataria avatar sebmarkbage avatar sophiebits avatar tesseralis avatar vjeux avatar yangshun avatar yungsters avatar zpao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

th.reactjs.org's Issues

Word Suggestion

คำต่อไปนี้เราควรใช้คำอะไรในภาษาไทยดีครับ

Pull request #66 needs to be fixed

(#66) Looks like this PR needs some work in terms of resolving merge conflict.

If it's okay, I'd like to contribute by fixing the merge conflicts in this particular branch: sync-bd0c9d8c

Pull request #167 may need to be merged

Hello krub,

I have tried to trace the source of errors in many of the PRs months ago and I believed I have fixed it in PR#167. The problem was the improper implementation of default and named exports. You might want to merge PR#167. Also, I understand that the current maintainers of this repo are very busy. I think that we as Thai developers should not give up on this project. Even though many Thai devs are proficient in English, having more open source projects translated into Thai will build a strong sense of pride and empower our Thai dev community in some ways. So, I want to step up and help your team maintain this repo.

Thank you na krub.

Thai Translation Progress

Maintainer List

For New Translators

To translate a page:

  1. Check that no one else has claimed your page in the checklist and comments below.
  2. Comment below with the name of the page you would like to translate. Please take only one page at a time.
  3. Clone this repo, translate your page, and submit a pull request!

Before contributing, read the glossary and style guide (once they exist) to understand how to translate various technical and React-specific terms.

Please be prompt with your translations! If you find that you can't commit anymore, let the maintainers know so they can assign the page to someone else.

For Maintainers

When someone volunteers, edit this issue with the username of the volunteer, and with the PR. Ex:

When PRs are merged, make sure to mark that page as completed!

Core Pages

To do before releasing as an "official" translation. Please translate these pages first.

Basics

API Reference

  • React
  • React.Component
  • ReactDOM
  • ReactDOMServer
  • DOM Elements
  • SyntheticEvent
  • Test Utilities
  • Shallow Renderer
  • Test Renderer
  • JS Environment Requirements
  • Glossary

Navigation

These are the navigation links that appear in the sidebar. Possibly wait until
the corresponding sections are translated to do these.

Next Steps

These are the next most important translations, ordered by importance:

Installation

  • Getting Started
  • Add React to a Website
  • Create a New React App
  • CDN Links

Hooks

Everyone is hooked on hooks! People are really excited about these and it would be great for them to be translated.

  • Introducing Hooks
  • Hooks at a Glance
  • Using the State Hook
  • Using the Effect Hook
  • Rules of Hooks
  • Building Your Own Hooks
  • Hooks API Reference
  • Hooks FAQ

Warnings

These are the pages that you get when you click the links in the console (e.g. https://reactjs.org/warnings/dont-call-proptypes.html). People tend to search these, so please don't translate the error message itself.

  • dont-call-proptypes
  • invalid-aria-prop
  • invalid-hook-call-warning
  • legacy-factories
  • refs-must-have-owner
  • special-props
  • unknown-prop

Advanced Guides

  • Accessibility
  • Code-Splitting
  • Context
  • Error Boundaries
  • Forwarding Refs
  • Fragments
  • Higher-Order Components
  • Integrating with Other Libraries
  • JSX In Depth
  • Optimizing Performance
  • Portals
  • React Without ES6
  • React Without JSX
  • Reconciliation
  • Refs and the DOM
  • Render Props
  • Static Type Checking
  • Strict Mode
  • Typechecking With PropTypes
  • Uncontrolled Components
  • Web Components

FAQ

  • APIs and AJAX
  • Babel, JSX, and Build Steps
  • Passing Functions to Components
  • Component State
  • Styling and CSS
  • File Structure
  • Versioning Policy
  • Virtual DOM and Internals

Contributing

Priority: Low

  • How to Contribute
  • Codebase Overview
  • Implementation Notes
  • Design Principles

Components

Components in src/components that have some text in them.

  • CodeEditor
  • CodeExample
  • ErrorDecoder
  • LayoutFooter
  • LayoutHeader
  • MarkdownPage

Additional Translations

These are not the primary translation targets.

  • Blog
  • Community

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.