Comments (4)
Did you import react?
from create-react-hook.
Yes that's the content of index.tsx:
import React from "react";
export const Foo = () => {
return <div></div>;
};
from create-react-hook.
That's odd, I thought it was supported. Try something like https://www.npmjs.com/package/rollup-plugin-jsx
from create-react-hook.
@Hermanya I made some testings, errors were differents, but I never could get typescript + jsx working together.
Because I don't really enjoy typescript then I just decided to get rid of it and went back to standard js with the babel plugin as you do in the default package.
Note that I still had to add jsx
to resolve plugin:
resolve({
extensions: ['.jsx', '.js']
}),
Thanks for your help
from create-react-hook.
Related Issues (20)
- Please add my hook use-auto-progress to your readme HOT 1
- Permission issue when use create react hook script HOT 4
- npm test script not recognize the generated test HOT 1
- Add useMarked() hook HOT 1
- Travis error when committing on github HOT 2
- 👏I like your project HOT 1
- keep on npm install HOT 2
- dist/index.d.ts is not exportable in typescript template HOT 8
- Add useDebounceInput hook HOT 1
- I'm using create-react-hook! HOT 1
- Add use-as-bind to list of hooks? HOT 1
- Add use-reducer-with-effects HOT 3
- Jest won't recognise test files outside src folder
- Freezes on invalid name
- Typescript build fails with generic types
- Error: npm publish - Too many dependencies HOT 1
- consider to upgrade react version in template
- hook rule validation after being imported in real project
- [Question] What is the difference between this and create-react-app?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-hook.