Help us understand the problem. What is going on with this article?

フロントエンド初心者が、ReactでHelloWorldしてみた(ブラウザ上編)

More than 1 year has passed since last update.

フロントエンド初心者が、ReactでHelloWorldしてみた(ブラウザ上編)

by moriyatakashijp
1 / 8

はじめに

  • モリヤ@moriyatakashijp
  • フロントエンド初心者です
  • フロントエンドに興味があるけど、時間が取れない人のために
  • 短時間で学習できるように、LT風にまとめます

React.js(React)とは


- Facebookが公開しているJavaScriptライブラリ
- Model、View、Controller(MVC)のViewに特化
- 初期版が2013年、最新版はv16(2018年11月)


なぜReactなのか


HelloWorldしてみた

index.html
<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <title>React Tutorial</title>
</head>
<body>
    <div id="app"></div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.js"></script>
    <script src="https://unpkg.com/babel-core@5.8.38/browser.min.js"></script>
    <script type="text/babel">
    ReactDOM.render(
        <h1>Hello, world!</h1>,
        document.getElementById('app')
    );
    </script>
</body>
</html>

動作確認


まとめ

  • ブラウザ上で動かす事はすぐできます
  • 仕組みを理解するには環境構築が必要です
  • 詳しく学びたい方は、React入門をご参考ください
  • 次回以降、Vue.jsなど他のライブラリも試しながら、理解を深めていきます

END

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away