VISITS Technologiesのreactデザインコンポーネント
npm install --save react react-dom styled-components visits-style
yarnでもできます
yarn add react react-dom styled-components visits-style
- React, React-dom(^18.2.0)
- styled-components(^6.0.2)
// index.tsx
import * as React from 'react';
import * as reactDOM from 'react-DOM';
import { ThemeProvider } from 'styled-components';
import { Button, defaultTheme } from 'visits-style';
function App() {
return (
<ThemeProvider theme={defaultTheme}>
<Button>Hello World!</Button>
</ThemeProvider>
)
}
const rootElement = document.getElementById('root')!;
const root = reactDOM.createRoot(rootElement);
root.render(<App />);