Skip to content

feat: React-lookalike for Vue.js UI#1

Open
swaldmann wants to merge 1 commit intomainfrom
react
Open

feat: React-lookalike for Vue.js UI#1
swaldmann wants to merge 1 commit intomainfrom
react

Conversation

@swaldmann
Copy link
Copy Markdown

This PR introduces a React project replacing the Vue.js CDN-served one. It's based on cds add react --into courses (on the vite branch in cds-dk), and adjusted to mimic the current Vue.js UI.

If you check out the vite branch in cds-dk you can also just run cds watch and it will show up in the web applications (it has the cds watch snippet by @Akatuoro integrated), even without starting the Vue.js server.

@swaldmann swaldmann requested a review from danjoa March 26, 2026 17:38
Comment on lines +1 to +29
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{js,jsx}'],
extends: [
js.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
rules: {
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
},
},
])
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of this is coming from npm create vite@latest catalog -- --template react, so I left it in. Not added by me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant