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 1 year has passed since last update.

Solid.js の使い方 (TypeScript)

Posted at

こちらを参考にしました。
Solid を試す
SolidJSに入門してみた

プロジェクトの作成と起動

npx degit solidjs/templates/ts ts01
cd ts01
npm i
npm run dev

プログラムの改造

src/App.tsx
import type { Component } from 'solid-js';

import { SampleCounter } from './SampleCounter';

const App: Component = () => {
  return (
    <SampleCounter />
  );
};

export default App;

次のプログラムは新規に作成

src/SampleCounter.tsx
import type { Component } from 'solid-js';

import { SampleCounter } from './SampleCounter';

const App: Component = () => {
  return (
    <SampleCounter />
  );
};

export default App;

ブラウザーで、http://localhost:3000/ にアクセス
image.png

image.png

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?