0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Reactメモ

Posted at

メモ

App.js

// 基本形:
// Reactをインポート
import React from 'react';

// Appクラスを定義
class App extends React.Component{
  const text='Hello' //render()の外ならjavascrptがかける
  render(){ //jsxを戻り値とするメソッドの定義の定義
    return (
       <div>{/*必ず<div>で囲う */}
        
       </div>
    );
  }
}

// Appクラスをエクスポート
export default App  ;

App.js

0
0
0

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?