Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Add official scoped preact preset, convert to latest Neutrino API #455

Merged
merged 5 commits into from
Nov 21, 2017

Conversation

eliperelman
Copy link
Member

This PR merges in the preact preset to packages, with a little cleanup to match the latest Neutrino API. This also adds the automatic import of h so users don't need to do it:

// not needed, this happens automatically
import { h } from 'preact';

In order to make the react preset consistent, I've also implemented the same auto-import of createElement from react:

// not needed, happens automatically
import React from 'react';

This would fix #260.

@eliperelman eliperelman merged commit 39599a4 into master Nov 21, 2017
@edmorley edmorley deleted the preact-temp branch November 21, 2017 15:29
@edmorley
Copy link
Member

I see a few small differences between this imported preset and the existing react one - I've filed #473 to sync them up at some point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

add neutrino-preset-react-require to react preset
3 participants