Skip to content

Add Typescript based React Starter Template #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

jfgrissom
Copy link
Contributor

  • create new starter template based on existing.
  • register new template with existing constants.
  • update jsx files to tsx files.
  • replace run-time type checks (proptypes) with build-time type checks to eliminate additional run-time overhead from proptypes.
  • enforce type inputs with react functional component props (idiomatic).
  • de-structure props for use in the component (idiomatic).
  • add global import to tsconfig to handle react import as a global.

@jfgrissom
Copy link
Contributor Author

Doing this for my own project so just figured I would save someone else the extra steps of changing the flavor of the template.

@peterpeterparker peterpeterparker merged commit de0ee67 into junobuild:main Jan 13, 2025
@peterpeterparker
Copy link
Contributor

Awesome, thanks! I'll pass few PRs to integrate it and publish a new version.

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.

2 participants