Giter Site home page Giter Site logo

Comments (3)

calebdwilliams avatar calebdwilliams commented on September 23, 2024 2

Hey, sorry I missed this comment, but yeah you should be able to add a pragma somewhere in your Babel config? There's the second paragraph of this section of the README. To be honest, I haven't tried that, but React says it should work so /shrug.

I'm closing this as not an issue. Let me know if you've figured anything out.

from jsx-native-events.

calebdwilliams avatar calebdwilliams commented on September 23, 2024

I don’t have a ton of experience with Gatsby, but I imagine it’s more or less the same idea. This post from the Gatsby site will probably walk you through it better than I can.

Take a look at that an let me know if it works. If not we can figure it out together.

from jsx-native-events.

tenphi avatar tenphi commented on September 23, 2024

My mistake. I asked the wrong question.

Your plugin works great with Gatsby. I just tried to find a way to remove the following code from every file:

/** @jsx nativeEvents */
import nativeEvents from 'jsx-native-events'

It tried a few tricks but still don't have any idea how to do it.

from jsx-native-events.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.