LoginSignup
0
0

More than 1 year has passed since last update.

React.jsを学ぶ際の準備

Posted at

記事の趣旨

  • React.jsを勉強しようとして、jsだけではconsole.logが見られず困った
  • 同じ階層にhtmlを用意しておいて、そのconsoleを見ながら作業すればいい!と気づく
  • テンプレートhtmlの備忘

テンプレートhtml

<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Station 15</title>
  </head>
  <body>
    <p>load時点のコンソール確認</p>
    <button onclick="test-App.js()">ボタン</button>
    <p>ボタンを押したときのコンソールも確認</p>
    <script type="text/javascript" src="./test-App.js"></script>
  </body>
</html>

jsの上下テンプレート

above
// なくて良さそう?
bottom
// なくて良さそう?
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0