-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Support for pluggable renderers #20
Comments
Willing to help on this, any pointers for where to start? |
I'm also totally down to getting Inferno fully working with Next as this project is beyond awesome in my opinion. Great work guys :) |
I started trying to see what this would take to implement. I thought this was going to do it, but not seeing any changes. Update: now getting some test failure:
|
Very impressive @rektide ! Looking forward to seeing this evolve. Ideally we get it down to 2 imports ( |
Piggybacking off @rektide's work, I was able to get it working by... git clone https://github.com/zeit/next.js next
cd next
npm install
npm install -i preact-compat/react preact-compat/react-dom preact preact-compat
# comment out HTMLDOMPropertyConfig
npm build # this will fail on the tests, but will still give you a dist/client
# copy that dist/client to whatever app you've got next running on Some additional work needs to be done to figure out how to make HMR play nice with non-react things. react-hot-loader does some crazy stuff. @developit has minimalist way to make HMR work more universally: preactjs/preact#168 (comment) I think the big things needed from next are:
|
@matthewmueller Tests pass for me! |
That's really amazing (and simple) @matthewmueller |
Both |
This is already possible with simple webpack overrides. |
Like
inferno
orpreact
.From the end user perspective, it would work as follows.
Configure
package.json
:Then we transform JSX to the pragma that, in this example,
next-preact
would need.The rendering pipeline would similarly be pluggable.
The text was updated successfully, but these errors were encountered: